[llvm-commits] CVS: llvm/lib/Target/ARM/ARMConstantIslandPass.cpp

Evan Cheng evan.cheng at apple.com
Fri Feb 2 11:09:36 PST 2007



Changes in directory llvm/lib/Target/ARM:

ARMConstantIslandPass.cpp updated: 1.22 -> 1.23
---
Log message:

Use MBB.empty() instead of MBB.size() for speed.

---
Diffs of the changes:  (+1 -1)

 ARMConstantIslandPass.cpp |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)


Index: llvm/lib/Target/ARM/ARMConstantIslandPass.cpp
diff -u llvm/lib/Target/ARM/ARMConstantIslandPass.cpp:1.22 llvm/lib/Target/ARM/ARMConstantIslandPass.cpp:1.23
--- llvm/lib/Target/ARM/ARMConstantIslandPass.cpp:1.22	Fri Feb  2 12:49:02 2007
+++ llvm/lib/Target/ARM/ARMConstantIslandPass.cpp	Fri Feb  2 13:09:19 2007
@@ -352,7 +352,7 @@
     // In thumb mode, if this block is a constpool island, pessmisticly assume
     // it needs to be padded by two byte so it's aligned on 4 byte boundary.
     if (AFI->isThumbFunction() &&
-        MBB.size() &&
+        !MBB.empty() &&
         MBB.begin()->getOpcode() == ARM::CONSTPOOL_ENTRY)
       MBBSize += 2;
 






More information about the llvm-commits mailing list