mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
Use MBB.empty() instead of MBB.size() for speed.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33789 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
1dd6a606ad
commit
05cc424082
@ -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