summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/X86/machine-cse.ll
diff options
context:
space:
mode:
authorNirav Dave <niravd@google.com>2018-11-14 21:11:53 +0000
committerNirav Dave <niravd@google.com>2018-11-14 21:11:53 +0000
commit1241dcb3cf469c3de9c5ca35af0a64fbb69cc10b (patch)
tree7d6902d1305394b284b1709dff6e0b997a9888c6 /llvm/test/CodeGen/X86/machine-cse.ll
parentb0486051d29086f48f3c0db469c1e88747a21057 (diff)
downloadbcm5719-llvm-1241dcb3cf469c3de9c5ca35af0a64fbb69cc10b.tar.gz
bcm5719-llvm-1241dcb3cf469c3de9c5ca35af0a64fbb69cc10b.zip
Bias physical register immediate assignments
The machine scheduler currently biases register copies to/from physical registers to be closer to their point of use / def to minimize their live ranges. This change extends this to also physical register assignments from immediate values. This causes a reduction in reduction in overall register pressure and minor reduction in spills and indirectly fixes an out-of-registers assertion (PR39391). Most test changes are from minor instruction reorderings and register name selection changes and direct consequences of that. Reviewers: MatzeB, qcolombet, myatsina, pcc Subscribers: nemanjai, jvesely, nhaehnle, eraman, hiraditya, javed.absar, arphaman, jfb, jsji, llvm-commits Differential Revision: https://reviews.llvm.org/D54218 llvm-svn: 346894
Diffstat (limited to 'llvm/test/CodeGen/X86/machine-cse.ll')
-rw-r--r--llvm/test/CodeGen/X86/machine-cse.ll2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/test/CodeGen/X86/machine-cse.ll b/llvm/test/CodeGen/X86/machine-cse.ll
index b55b43fafa5..281aaca7c8d 100644
--- a/llvm/test/CodeGen/X86/machine-cse.ll
+++ b/llvm/test/CodeGen/X86/machine-cse.ll
@@ -63,8 +63,8 @@ define void @commute(i32 %test_case, i32 %scale) nounwind ssp {
; CHECK-NEXT: pushq %rax
; CHECK-NEXT: imull %edi, %esi
; CHECK-NEXT: leal (%rsi,%rsi,2), %esi
-; CHECK-NEXT: xorl %eax, %eax
; CHECK-NEXT: # kill: def $edi killed $edi killed $rdi
+; CHECK-NEXT: xorl %eax, %eax
; CHECK-NEXT: callq printf
; CHECK-NEXT: addq $8, %rsp
; CHECK-NEXT: .p2align 4, 0x90
OpenPOWER on IntegriCloud