diff options
| author | Dale Johannesen <dalej@apple.com> | 2010-01-15 18:58:14 +0000 |
|---|---|---|
| committer | Dale Johannesen <dalej@apple.com> | 2010-01-15 18:58:14 +0000 |
| commit | fb85dddba0be0a0cafd927b5510f1c00ed7fe976 (patch) | |
| tree | 21be28a406fde484f5a7bbeb3637ccaca8b50ef4 /llvm/lib/Target/X86/X86RegisterInfo.cpp | |
| parent | ebe547414807a4a5e1e02d9cf1471b2962f1bf98 (diff) | |
| download | bcm5719-llvm-fb85dddba0be0a0cafd927b5510f1c00ed7fe976.tar.gz bcm5719-llvm-fb85dddba0be0a0cafd927b5510f1c00ed7fe976.zip | |
Revert 93499. After discussion with Chris we agreed
FrameIndexes should be lowered, but the same way as
everything else (target dependent) rather than in a
special hacked way. The lowering needs to be done
for eventual purposes of Dwarf generation.
llvm-svn: 93530
Diffstat (limited to 'llvm/lib/Target/X86/X86RegisterInfo.cpp')
| -rw-r--r-- | llvm/lib/Target/X86/X86RegisterInfo.cpp | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/llvm/lib/Target/X86/X86RegisterInfo.cpp b/llvm/lib/Target/X86/X86RegisterInfo.cpp index 9bd96af6c75..d96aafda603 100644 --- a/llvm/lib/Target/X86/X86RegisterInfo.cpp +++ b/llvm/lib/Target/X86/X86RegisterInfo.cpp @@ -591,15 +591,6 @@ X86RegisterInfo::eliminateFrameIndex(MachineBasicBlock::iterator II, int FrameIndex = MI.getOperand(i).getIndex(); unsigned BasePtr; - // DEBUG_VALUE has a special representation, and is only robust enough to - // represent SP(or BP) +- offset addressing modes. We rewrite the - // FrameIndex to be a constant; implicitly positive constants are relative - // to ESP and negative ones to EBP. - if (MI.getOpcode()==TargetInstrInfo::DEBUG_VALUE) { - MI.getOperand(i).ChangeToImmediate(getFrameIndexOffset(MF, FrameIndex)); - return 0; - } - if (needsStackRealignment(MF)) BasePtr = (FrameIndex < 0 ? FramePtr : StackPtr); else |

