OSDN Git Service
(root)
/
android-x86
/
external-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1e8d062
)
Ignore dbg_value's.
author
Evan Cheng
<evan.cheng@apple.com>
Sat, 19 Jun 2010 02:36:21 +0000
(
02:36
+0000)
committer
Evan Cheng
<evan.cheng@apple.com>
Sat, 19 Jun 2010 02:36:21 +0000
(
02:36
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@106373
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Target/ARM/Thumb2HazardRecognizer.cpp
patch
|
blob
|
history
diff --git
a/lib/Target/ARM/Thumb2HazardRecognizer.cpp
b/lib/Target/ARM/Thumb2HazardRecognizer.cpp
index
1614422
..
3fe31a2
100644
(file)
--- 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;
}
}