projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1dd6a60
)
Use MBB.empty() instead of MBB.size() for speed.
author
Evan Cheng
<evan.cheng@apple.com>
Fri, 2 Feb 2007 19:09:19 +0000
(19:09 +0000)
committer
Evan Cheng
<evan.cheng@apple.com>
Fri, 2 Feb 2007 19:09:19 +0000
(19:09 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33789
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Target/ARM/ARMConstantIslandPass.cpp
patch
|
blob
|
history
diff --git
a/lib/Target/ARM/ARMConstantIslandPass.cpp
b/lib/Target/ARM/ARMConstantIslandPass.cpp
index 89c32aa2931566d41440eabc61a24058d52560c3..199782dcfe556f924d31c85a91a9279a31422caa 100644
(file)
--- a/
lib/Target/ARM/ARMConstantIslandPass.cpp
+++ b/
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;