projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Make another kill check LiveIntervals-aware.
[oota-llvm.git]
/
lib
/
CodeGen
/
TwoAddressInstructionPass.cpp
diff --git
a/lib/CodeGen/TwoAddressInstructionPass.cpp
b/lib/CodeGen/TwoAddressInstructionPass.cpp
index 8d242ec51a171e2303a50d6440fc39b71d10e1b7..e0dba3f291683505b4ab812517640a6fddbbe894 100644
(file)
--- a/
lib/CodeGen/TwoAddressInstructionPass.cpp
+++ b/
lib/CodeGen/TwoAddressInstructionPass.cpp
@@
-499,7
+499,7
@@
isProfitableToCommute(unsigned regA, unsigned regB, unsigned regC,
// insert => %reg1030<def> = MOV8rr %reg1029
// %reg1030<def> = ADD8rr %reg1029<kill>, %reg1028<kill>, %EFLAGS<imp-def,dead>
- if (!
MI->killsRegister(regC
))
+ if (!
isPlainlyKilled(MI, regC, LIS
))
return false;
// Ok, we have something like: