summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target
diff options
context:
space:
mode:
authorDehao Chen <dehao@google.com>2016-07-01 15:40:25 +0000
committerDehao Chen <dehao@google.com>2016-07-01 15:40:25 +0000
commitad2b4e1334c1169067bbac563f03925b96ae49ac (patch)
treec77f3013b929526c42d83d8aad23a0eb5010009d /llvm/lib/Target
parent1f5ceb0b5d1f9c8a8a1b6c0f4ae88fd100662639 (diff)
downloadbcm5719-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.cpp2
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())
OpenPOWER on IntegriCloud