diff options
author | Evan Cheng <evan.cheng@apple.com> | 2010-06-19 02:36:21 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2010-06-19 02:36:21 +0000 |
commit | 02ba9e19c7f537904d02b5df9a12ac5f895c4c0c (patch) | |
tree | 13d892721a1ce11a99ca5e5565861977f575cddb /lib/Target/ARM | |
parent | 1e8d06282ff42e402d21795519ab6f4d0a413b89 (diff) | |
download | external_llvm-02ba9e19c7f537904d02b5df9a12ac5f895c4c0c.zip external_llvm-02ba9e19c7f537904d02b5df9a12ac5f895c4c0c.tar.gz external_llvm-02ba9e19c7f537904d02b5df9a12ac5f895c4c0c.tar.bz2 |
Ignore dbg_value's.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@106373 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/ARM')
-rw-r--r-- | lib/Target/ARM/Thumb2HazardRecognizer.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/Target/ARM/Thumb2HazardRecognizer.cpp b/lib/Target/ARM/Thumb2HazardRecognizer.cpp index 1614422..3fe31a2 100644 --- a/lib/Target/ARM/Thumb2HazardRecognizer.cpp +++ b/lib/Target/ARM/Thumb2HazardRecognizer.cpp @@ -17,7 +17,7 @@ ScheduleHazardRecognizer::HazardType Thumb2HazardRecognizer::getHazardType(SUnit *SU) { if (ITBlockSize) { MachineInstr *MI = SU->getInstr(); - if (MI != ITBlockMIs[ITBlockSize-1]) + if (!MI->isDebugValue() && MI != ITBlockMIs[ITBlockSize-1]) return Hazard; } @@ -42,6 +42,8 @@ void Thumb2HazardRecognizer::EmitInstruction(SUnit *SU) { MachineBasicBlock::iterator I = MI; for (unsigned i = 0; i < ITBlockSize; ++i) { ++I; + while (I->isDebugValue()) + ++I; ITBlockMIs[ITBlockSize-1-i] = &*I; } } |