diff options
author | Dan Gohman <gohman@apple.com> | 2007-06-14 20:50:44 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2007-06-14 20:50:44 +0000 |
commit | c101e95cb6aae1fd6a0727ba4b518a7894ae3089 (patch) | |
tree | 31516302b800a8107db6735791587a0cdb6ed26b /lib/CodeGen/VirtRegMap.cpp | |
parent | 86ff296e63cd9d4c28a7b73d3d6ec05e4011a0e5 (diff) |
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
Diffstat (limited to 'lib/CodeGen/VirtRegMap.cpp')
-rw-r--r-- | lib/CodeGen/VirtRegMap.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/CodeGen/VirtRegMap.cpp b/lib/CodeGen/VirtRegMap.cpp index 9ae38ac901..95453b0e3d 100644 --- a/lib/CodeGen/VirtRegMap.cpp +++ b/lib/CodeGen/VirtRegMap.cpp @@ -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); |