summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/PowerPC/redundant-copy-after-tail-dup.ll
diff options
context:
space:
mode:
authorKai Luo <lkail@cn.ibm.com>2019-12-05 14:01:00 +0800
committerKai Luo <lkail@cn.ibm.com>2019-12-05 14:32:11 +0800
commitb200c5180e8d6f9ac4e08512a04739ab02cebdb8 (patch)
tree0a44eca138cead8b5336e6de1b5f58f59f8448a8 /llvm/test/CodeGen/PowerPC/redundant-copy-after-tail-dup.ll
parent93cc9dddd82f9e971f382ade6acf6634c5914966 (diff)
downloadbcm5719-llvm-b200c5180e8d6f9ac4e08512a04739ab02cebdb8.tar.gz
bcm5719-llvm-b200c5180e8d6f9ac4e08512a04739ab02cebdb8.zip
Reland [MachineCopyPropagation] Extend MCP to do trivial copy backward propagation.
Fix assertion error ``` bool llvm::MachineOperand::isRenamable() const: Assertion `Register::isPhysicalRegister(getReg()) && "isRenamable should only be checked on physical registers"' failed. ``` by checking if the register is 0 before invoking `isRenamable`.
Diffstat (limited to 'llvm/test/CodeGen/PowerPC/redundant-copy-after-tail-dup.ll')
-rw-r--r--llvm/test/CodeGen/PowerPC/redundant-copy-after-tail-dup.ll3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/test/CodeGen/PowerPC/redundant-copy-after-tail-dup.ll b/llvm/test/CodeGen/PowerPC/redundant-copy-after-tail-dup.ll
index 6aaf169dabe..dd41abd093d 100644
--- a/llvm/test/CodeGen/PowerPC/redundant-copy-after-tail-dup.ll
+++ b/llvm/test/CodeGen/PowerPC/redundant-copy-after-tail-dup.ll
@@ -26,8 +26,7 @@ define dso_local i1 @t(%class.A* %this, i32 %color, i32 %vertex) local_unnamed_a
; CHECK-P9-NEXT: cmplwi r3, 2
; CHECK-P9-NEXT: bge- cr0, .LBB0_6
; CHECK-P9-NEXT: # %bb.3: # %land.lhs.true.1
-; CHECK-P9-NEXT: li r5, 0
-; CHECK-P9-NEXT: mr r3, r5
+; CHECK-P9-NEXT: li r3, 0
; CHECK-P9-NEXT: blr
; CHECK-P9-NEXT: .LBB0_4: # %lor.lhs.false
; CHECK-P9-NEXT: cmplwi cr0, r4, 0
OpenPOWER on IntegriCloud