1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 11:42:57 +01:00

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

llvm-svn: 33789
This commit is contained in:
Evan Cheng 2007-02-02 19:09:19 +00:00
parent 6a428320d6
commit 496c67ee3e

View File

@ -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;