aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Target/X86/X86CallFrameOptimization.cpp
diff options
context:
space:
mode:
authorMichael Kuperstein <michael.m.kuperstein@intel.com>2015-12-06 13:06:20 +0000
committerMichael Kuperstein <michael.m.kuperstein@intel.com>2015-12-06 13:06:20 +0000
commit77ce9d3b1a4675b7df00686b7157258d3a0324b7 (patch)
tree5d88ee42fa6d8a61d561dd59cfb160c39bcc19f7 /llvm/lib/Target/X86/X86CallFrameOptimization.cpp
parent076dfe5c12b029e9109bf898710d0296f6188f64 (diff)
downloadllvm-77ce9d3b1a4675b7df00686b7157258d3a0324b7.zip
llvm-77ce9d3b1a4675b7df00686b7157258d3a0324b7.tar.gz
llvm-77ce9d3b1a4675b7df00686b7157258d3a0324b7.tar.bz2
[X86] Always generate precise CFA adjustments.
This removes the code path that generate "synchronous" (only correct at call site) CFA. We will probably want to re-introduce it once we are capable of emitting different .eh_frame and .debug_frame sections. Differential Revision: http://reviews.llvm.org/D14948 llvm-svn: 254874
Diffstat (limited to 'llvm/lib/Target/X86/X86CallFrameOptimization.cpp')
-rw-r--r--llvm/lib/Target/X86/X86CallFrameOptimization.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Target/X86/X86CallFrameOptimization.cpp b/llvm/lib/Target/X86/X86CallFrameOptimization.cpp
index 23990b0..fc6ee17 100644
--- a/llvm/lib/Target/X86/X86CallFrameOptimization.cpp
+++ b/llvm/lib/Target/X86/X86CallFrameOptimization.cpp
@@ -500,7 +500,8 @@ bool X86CallFrameOptimization::adjustCallSequence(MachineFunction &MF,
// For debugging, when using SP-based CFA, we need to adjust the CFA
// offset after each push.
- if (!TFL->hasFP(MF) && MF.getMMI().usePreciseUnwindInfo())
+ // TODO: This is needed only if we require precise CFA.
+ if (!TFL->hasFP(MF))
TFL->BuildCFI(MBB, std::next(Push), DL,
MCCFIInstruction::createAdjustCfaOffset(nullptr, 4));