mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-15 23:31:37 +00:00
Don't waste time unfolding simple loads. The unfolded copy won't be hoisted.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116081 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
1aca5bc135
commit
e95f3195b8
@ -636,6 +636,10 @@ bool MachineLICM::IsProfitableToHoist(MachineInstr &MI) {
|
||||
}
|
||||
|
||||
MachineInstr *MachineLICM::ExtractHoistableLoad(MachineInstr *MI) {
|
||||
// Don't unfold simple loads.
|
||||
if (MI->getDesc().canFoldAsLoad())
|
||||
return 0;
|
||||
|
||||
// If not, we may be able to unfold a load and hoist that.
|
||||
// First test whether the instruction is loading from an amenable
|
||||
// memory location.
|
||||
|
Loading…
x
Reference in New Issue
Block a user