[llvm-commits] [llvm] r78655 - /llvm/trunk/lib/Target/ARM/ARMConstantIslandPass.cpp
Evan Cheng
evan.cheng at apple.com
Tue Aug 11 00:36:16 PDT 2009
Author: evancheng
Date: Tue Aug 11 02:36:14 2009
New Revision: 78655
URL: http://llvm.org/viewvc/llvm-project?rev=78655&view=rev
Log:
Cosmetic changes.
Modified:
llvm/trunk/lib/Target/ARM/ARMConstantIslandPass.cpp
Modified: llvm/trunk/lib/Target/ARM/ARMConstantIslandPass.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARM/ARMConstantIslandPass.cpp?rev=78655&r1=78654&r2=78655&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARM/ARMConstantIslandPass.cpp (original)
+++ llvm/trunk/lib/Target/ARM/ARMConstantIslandPass.cpp Tue Aug 11 02:36:14 2009
@@ -797,14 +797,14 @@
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 @@
// 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;
More information about the llvm-commits
mailing list