From 4a8ea215e69e9ca19c8acf1c236b73860188a023 Mon Sep 17 00:00:00 2001 From: Evan Cheng Date: Tue, 11 Aug 2009 07:36:14 +0000 Subject: [PATCH] Cosmetic changes. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78655 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/ARM/ARMConstantIslandPass.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/lib/Target/ARM/ARMConstantIslandPass.cpp b/lib/Target/ARM/ARMConstantIslandPass.cpp index 75e80d9b692..fe7593ee965 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; -- 2.34.1