diff options
author | Cameron Zwarich <zwarich@apple.com> | 2013-02-21 07:02:30 +0000 |
---|---|---|
committer | Cameron Zwarich <zwarich@apple.com> | 2013-02-21 07:02:30 +0000 |
commit | 9e722aed4a60fbe1f59396f31705be8223054da3 (patch) | |
tree | 14f3331c444da66d8dc5685df5143a89a0128861 /llvm/lib/CodeGen | |
parent | c896478f0dd0f9f2cc7f43caef64ce6092c7b8a7 (diff) | |
download | bcm5719-llvm-9e722aed4a60fbe1f59396f31705be8223054da3.tar.gz bcm5719-llvm-9e722aed4a60fbe1f59396f31705be8223054da3.zip |
Make another kill check LiveIntervals-aware.
This brings the number of remaining failures in 'make check' without
LiveVariables down to 39, with 1 unexpectedly passing test.
llvm-svn: 175727
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r-- | llvm/lib/CodeGen/TwoAddressInstructionPass.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/TwoAddressInstructionPass.cpp b/llvm/lib/CodeGen/TwoAddressInstructionPass.cpp index 8d242ec51a1..e0dba3f2916 100644 --- a/llvm/lib/CodeGen/TwoAddressInstructionPass.cpp +++ b/llvm/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: |