projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fix an overly conservative caching issue that caused memdep to
[oota-llvm.git]
/
lib
/
CodeGen
/
TargetInstrInfoImpl.cpp
diff --git
a/lib/CodeGen/TargetInstrInfoImpl.cpp
b/lib/CodeGen/TargetInstrInfoImpl.cpp
index 102e2a34a97e382ac439ba213a611c6e581e50ae..393e315a3214b09c8f27c9ad5d72749fc24e7165 100644
(file)
--- a/
lib/CodeGen/TargetInstrInfoImpl.cpp
+++ b/
lib/CodeGen/TargetInstrInfoImpl.cpp
@@
-329,7
+329,7
@@
TargetInstrInfo::isReallyTriviallyReMaterializableGeneric(const MachineInstr *
return false;
// For the def, it should be the only def of that register.
- if (MO.isDef() && (next(MRI.def_begin(Reg)) != MRI.def_end() ||
+ if (MO.isDef() && (
llvm::
next(MRI.def_begin(Reg)) != MRI.def_end() ||
MRI.isLiveIn(Reg)))
return false;