summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/SPARC
diff options
context:
space:
mode:
authorSimon Pilgrim <llvm-dev@redking.me.uk>2019-03-25 18:51:57 +0000
committerSimon Pilgrim <llvm-dev@redking.me.uk>2019-03-25 18:51:57 +0000
commit167af1bafbf0a2a9149f03315f7a30a8425db408 (patch)
treed3c9a6b64f0527eff2c7e21e4a95fe9218b1baa3 /llvm/test/CodeGen/SPARC
parent3bd4b5a925bd5bd5a5498d8d84596ec099e9c198 (diff)
downloadbcm5719-llvm-167af1bafbf0a2a9149f03315f7a30a8425db408.tar.gz
bcm5719-llvm-167af1bafbf0a2a9149f03315f7a30a8425db408.zip
[SelectionDAG] Add icmp UNDEF handling to SelectionDAG::FoldSetCC
First half of PR40800, this patch adds DAG undef handling to icmp instructions to match the behaviour in llvm::ConstantFoldCompareInstruction and SimplifyICmpInst, this permits constant folding of vector comparisons where some elements had been reduced to UNDEF (by SimplifyDemandedVectorElts etc.). This involved a lot of tweaking to reduced tests as bugpoint loves to reduce icmp arguments to undef........ Differential Revision: https://reviews.llvm.org/D59363 llvm-svn: 356938
Diffstat (limited to 'llvm/test/CodeGen/SPARC')
-rw-r--r--llvm/test/CodeGen/SPARC/missinglabel.ll4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/test/CodeGen/SPARC/missinglabel.ll b/llvm/test/CodeGen/SPARC/missinglabel.ll
index dd73a565092..60a3641ccea 100644
--- a/llvm/test/CodeGen/SPARC/missinglabel.ll
+++ b/llvm/test/CodeGen/SPARC/missinglabel.ll
@@ -4,7 +4,7 @@
target datalayout = "E-m:e-i64:64-n32:64-S128"
target triple = "sparc64-unknown-linux-gnu"
-define void @f() align 2 {
+define void @f(i64 %a0) align 2 {
; CHECK-LABEL: f:
; CHECK: .cfi_startproc
; CHECK-NEXT: ! %bb.0: ! %entry
@@ -22,7 +22,7 @@ define void @f() align 2 {
; CHECK-NEXT: .LBB0_1: ! %cond.false
; CHECK-NEXT: .LBB0_4: ! %exit.i85
entry:
- %cmp = icmp eq i64 undef, 0
+ %cmp = icmp eq i64 %a0, 0
br i1 %cmp, label %targetblock, label %cond.false
cond.false:
OpenPOWER on IntegriCloud