diff options
| author | Dehao Chen <dehao@google.com> | 2016-07-01 15:40:25 +0000 |
|---|---|---|
| committer | Dehao Chen <dehao@google.com> | 2016-07-01 15:40:25 +0000 |
| commit | ad2b4e1334c1169067bbac563f03925b96ae49ac (patch) | |
| tree | c77f3013b929526c42d83d8aad23a0eb5010009d /llvm/lib/Target | |
| parent | 1f5ceb0b5d1f9c8a8a1b6c0f4ae88fd100662639 (diff) | |
| download | bcm5719-llvm-ad2b4e1334c1169067bbac563f03925b96ae49ac.tar.gz bcm5719-llvm-ad2b4e1334c1169067bbac563f03925b96ae49ac.zip | |
Do not count debug instructions when counting number of uses to reorder frame objects.
Summary: The code generation should be independent of the debug info.
Reviewers: zansari, davidxl, mkuper, majnemer
Subscribers: majnemer, llvm-commits
Differential Revision: http://reviews.llvm.org/D21911
llvm-svn: 274357
Diffstat (limited to 'llvm/lib/Target')
| -rw-r--r-- | llvm/lib/Target/X86/X86FrameLowering.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Target/X86/X86FrameLowering.cpp b/llvm/lib/Target/X86/X86FrameLowering.cpp index e69038eacc3..0aca4019705 100644 --- a/llvm/lib/Target/X86/X86FrameLowering.cpp +++ b/llvm/lib/Target/X86/X86FrameLowering.cpp @@ -2870,6 +2870,8 @@ void X86FrameLowering::orderFrameObjects( // Count the number of uses for each object. for (auto &MBB : MF) { for (auto &MI : MBB) { + if (MI.isDebugValue()) + continue; for (const MachineOperand &MO : MI.operands()) { // Check to see if it's a local stack symbol. if (!MO.isFI()) |

