projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0492a8c
)
Use the latest MachineRegisterInfo APIs. No functionality.
author
Andrew Trick
<atrick@apple.com>
Mon, 30 Jul 2012 23:48:17 +0000
(23:48 +0000)
committer
Andrew Trick
<atrick@apple.com>
Mon, 30 Jul 2012 23:48:17 +0000
(23:48 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@161010
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/CodeGen/ScheduleDAGInstrs.cpp
patch
|
blob
|
history
diff --git
a/lib/CodeGen/ScheduleDAGInstrs.cpp
b/lib/CodeGen/ScheduleDAGInstrs.cpp
index 5b40cb4a7e264745227b447425c598bb72f5be5a..9c1dba355b480f36b144c41d7daa4e8059b9b228 100644
(file)
--- a/
lib/CodeGen/ScheduleDAGInstrs.cpp
+++ b/
lib/CodeGen/ScheduleDAGInstrs.cpp
@@
-414,7
+414,7
@@
void ScheduleDAGInstrs::addVRegDefDeps(SUnit *SU, unsigned OperIdx) {
// Singly defined vregs do not have output/anti dependencies.
// The current operand is a def, so we have at least one.
// Check here if there are any others...
- if (
llvm::next(MRI.def_begin(Reg)) == MRI.def_end(
))
+ if (
MRI.hasOneDef(Reg
))
return;
// Add output dependence to the next nearest def of this vreg.