mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-12 02:33:33 +00:00
Update comments.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@124843 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
9ecd1e7197
commit
c8b90e22a8
@ -504,8 +504,9 @@ TailDuplicatePass::TailDuplicate(MachineBasicBlock *TailBB, MachineFunction &MF,
|
||||
if (!I->isPHI() && !I->isDebugValue())
|
||||
InstrCount += 1;
|
||||
}
|
||||
// Heuristically, don't tail-duplicate calls if it would expand code size,
|
||||
// as it's less likely to be worth the extra cost.
|
||||
// Don't tail-duplicate calls before register allocation. Calls presents a
|
||||
// barrier to register allocation so duplicating them may end up increasing
|
||||
// spills.
|
||||
if (InstrCount > 1 && (PreRegAlloc && HasCall))
|
||||
return false;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user