diff options
author | Evan Cheng <evan.cheng@apple.com> | 2009-08-11 07:36:14 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2009-08-11 07:36:14 +0000 |
commit | 4a8ea215e69e9ca19c8acf1c236b73860188a023 (patch) | |
tree | 86d59684065d501e37d8c28ed4583aea29110184 /lib/Target/ARM/ARMConstantIslandPass.cpp | |
parent | 7fb8c3ffc0b41d60ac935b8f3550f262a28f155d (diff) | |
download | external_llvm-4a8ea215e69e9ca19c8acf1c236b73860188a023.zip external_llvm-4a8ea215e69e9ca19c8acf1c236b73860188a023.tar.gz external_llvm-4a8ea215e69e9ca19c8acf1c236b73860188a023.tar.bz2 |
Cosmetic changes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78655 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/ARM/ARMConstantIslandPass.cpp')
-rw-r--r-- | lib/Target/ARM/ARMConstantIslandPass.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/lib/Target/ARM/ARMConstantIslandPass.cpp b/lib/Target/ARM/ARMConstantIslandPass.cpp index 75e80d9..fe7593e 100644 --- a/lib/Target/ARM/ARMConstantIslandPass.cpp +++ b/lib/Target/ARM/ARMConstantIslandPass.cpp @@ -797,14 +797,14 @@ void ARMConstantIslands::AdjustBBOffsetsAfter(MachineBasicBlock *BB, if (!MBB->empty()) { // Constant pool entries require padding. if (MBB->begin()->getOpcode() == ARM::CONSTPOOL_ENTRY) { - unsigned oldOffset = BBOffsets[i] - delta; - if (oldOffset%4==0 && BBOffsets[i]%4!=0) { + unsigned OldOffset = BBOffsets[i] - delta; + if ((OldOffset%4) == 0 && (BBOffsets[i]%4) != 0) { // add new padding BBSizes[i] += 2; delta += 2; - } else if (oldOffset%4!=0 && BBOffsets[i]%4==0) { + } else if ((OldOffset%4) != 0 && (BBOffsets[i]%4) == 0) { // remove existing padding - BBSizes[i] -=2; + BBSizes[i] -= 2; delta -= 2; } } @@ -812,13 +812,13 @@ void ARMConstantIslands::AdjustBBOffsetsAfter(MachineBasicBlock *BB, // following unconditional branches are removed by AnalyzeBranch. MachineInstr *ThumbJTMI = prior(MBB->end()); if (ThumbJTMI->getOpcode() == ARM::tBR_JTr) { - unsigned newMIOffset = GetOffsetOf(ThumbJTMI); - unsigned oldMIOffset = newMIOffset - delta; - if (oldMIOffset%4 == 0 && newMIOffset%4 != 0) { + unsigned NewMIOffset = GetOffsetOf(ThumbJTMI); + unsigned OldMIOffset = NewMIOffset - delta; + if ((OldMIOffset%4) == 0 && (NewMIOffset%4) != 0) { // remove existing padding BBSizes[i] -= 2; delta -= 2; - } else if (oldMIOffset%4 != 0 && newMIOffset%4 == 0) { + } else if ((OldMIOffset%4) != 0 && (NewMIOffset%4) == 0) { // add new padding BBSizes[i] += 2; delta += 2; |