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:
parent
6a428320d6
commit
496c67ee3e
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user