mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-11-01 15:17:25 +00:00
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@175727 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -499,7 +499,7 @@ isProfitableToCommute(unsigned regA, unsigned regB, unsigned regC,
|
|||||||
// insert => %reg1030<def> = MOV8rr %reg1029
|
// insert => %reg1030<def> = MOV8rr %reg1029
|
||||||
// %reg1030<def> = ADD8rr %reg1029<kill>, %reg1028<kill>, %EFLAGS<imp-def,dead>
|
// %reg1030<def> = ADD8rr %reg1029<kill>, %reg1028<kill>, %EFLAGS<imp-def,dead>
|
||||||
|
|
||||||
if (!MI->killsRegister(regC))
|
if (!isPlainlyKilled(MI, regC, LIS))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
// Ok, we have something like:
|
// Ok, we have something like:
|
||||||
|
|||||||
Reference in New Issue
Block a user