diff options
author | Evan Cheng <evan.cheng@apple.com> | 2007-02-02 19:09:19 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2007-02-02 19:09:19 +0000 |
commit | d9d94700a4b7b4aae32635c157887a6ca4a87d02 (patch) | |
tree | ccbfd95862e2b9d3fb7e33521a95a07cc3a8fa0b /llvm/lib/Target/ARM/ARMConstantIslandPass.cpp | |
parent | 3ad22567b3c8a23b2ebc80c71f31fd5c9a2c2136 (diff) | |
download | bcm5719-llvm-d9d94700a4b7b4aae32635c157887a6ca4a87d02.tar.gz bcm5719-llvm-d9d94700a4b7b4aae32635c157887a6ca4a87d02.zip |
Use MBB.empty() instead of MBB.size() for speed.
llvm-svn: 33789
Diffstat (limited to 'llvm/lib/Target/ARM/ARMConstantIslandPass.cpp')
-rw-r--r-- | llvm/lib/Target/ARM/ARMConstantIslandPass.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/ARM/ARMConstantIslandPass.cpp b/llvm/lib/Target/ARM/ARMConstantIslandPass.cpp index 89c32aa2931..199782dcfe5 100644 --- a/llvm/lib/Target/ARM/ARMConstantIslandPass.cpp +++ b/llvm/lib/Target/ARM/ARMConstantIslandPass.cpp @@ -352,7 +352,7 @@ void ARMConstantIslands::InitialFunctionScan(MachineFunction &Fn, // 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; |