diff options
| author | Evan Cheng <evan.cheng@apple.com> | 2008-05-23 23:00:04 +0000 |
|---|---|---|
| committer | Evan Cheng <evan.cheng@apple.com> | 2008-05-23 23:00:04 +0000 |
| commit | 7c0db62a5eb2aa2ad53543024a2b60b67c7ccbeb (patch) | |
| tree | aa8f3ac4344779d2e0f0967877b493d86c11fd58 /llvm/lib/CodeGen/LiveIntervalAnalysis.cpp | |
| parent | da52d216e6605d751ab0b8ca758f81d8b08d4318 (diff) | |
| download | bcm5719-llvm-7c0db62a5eb2aa2ad53543024a2b60b67c7ccbeb.tar.gz bcm5719-llvm-7c0db62a5eb2aa2ad53543024a2b60b67c7ccbeb.zip | |
Revert 51440 as it breaks a bunch of PIC tests.
llvm-svn: 51513
Diffstat (limited to 'llvm/lib/CodeGen/LiveIntervalAnalysis.cpp')
| -rw-r--r-- | llvm/lib/CodeGen/LiveIntervalAnalysis.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp b/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp index 4997302fa6a..2558b09ad60 100644 --- a/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp +++ b/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp @@ -1150,9 +1150,7 @@ rewriteInstructionsForSpills(const LiveInterval &li, bool TrySplit, } MachineBasicBlock *MBB = MI->getParent(); - // ReMatDefMI is a clone and not in the IR at all, so check - // RefMatOrigDefMI too. - if (ImpUse && MI != ReMatDefMI && MI != ReMatOrigDefMI) { + if (ImpUse && MI != ReMatDefMI) { // Re-matting an instruction with virtual register use. Update the // register interval's spill weight to HUGE_VALF to prevent it from // being spilled. |

