mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-12 13:38:21 +00:00
Add a target hook to allow loads from constant pools to be rematerialized, and an
implementation for x86. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37576 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -664,7 +664,8 @@ void LocalSpiller::RewriteMBB(MachineBasicBlock &MBB, VirtRegMap &VRM,
|
||||
// If this instruction is being rematerialized, just remove it!
|
||||
int FrameIdx;
|
||||
if ((TID->Flags & M_REMATERIALIZIBLE) ||
|
||||
TII->isLoadFromStackSlot(&MI, FrameIdx)) {
|
||||
TII->isLoadFromStackSlot(&MI, FrameIdx) ||
|
||||
TII->isOtherReMaterializableLoad(&MI)) {
|
||||
bool Remove = true;
|
||||
for (unsigned i = 0, e = MI.getNumOperands(); i != e; ++i) {
|
||||
MachineOperand &MO = MI.getOperand(i);
|
||||
|
Reference in New Issue
Block a user