summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSanjay Patel <spatel@rotateright.com>2018-03-08 14:57:08 +0000
committerSanjay Patel <spatel@rotateright.com>2018-03-08 14:57:08 +0000
commit4ad3c3214465d547ba5c61f264bac37dca6adf89 (patch)
tree5115116381145227dad690c0da0c7d509e4182fc
parent9e2c8a9db16f502b135a38fdb6555de8739b9a5f (diff)
downloadbcm5719-llvm-4ad3c3214465d547ba5c61f264bac37dca6adf89.tar.gz
bcm5719-llvm-4ad3c3214465d547ba5c61f264bac37dca6adf89.zip
[InstCombine, NewGVN] remove FP undef from tests
I'm trying to preserve the intent of these tests by using non-undef operands; if we fix FP undef folding these tests will not pass. llvm-svn: 327004
-rw-r--r--llvm/test/Transforms/InstCombine/select-crash.ll2
-rw-r--r--llvm/test/Transforms/NewGVN/pr32607.ll4
2 files changed, 3 insertions, 3 deletions
diff --git a/llvm/test/Transforms/InstCombine/select-crash.ll b/llvm/test/Transforms/InstCombine/select-crash.ll
index 991635b63aa..41b69d25104 100644
--- a/llvm/test/Transforms/InstCombine/select-crash.ll
+++ b/llvm/test/Transforms/InstCombine/select-crash.ll
@@ -15,7 +15,7 @@ entry:
%cmp86 = fcmp ogt double %highlights, 0.000000e+00
%cond90 = select i1 %cmp86, double %sub24, double %add26
%mul91 = fmul double %highlights, %cond90
- %add94 = fadd double undef, %mul91
+ %add94 = fadd double %mul91, %mul91
ret double %add94
}
diff --git a/llvm/test/Transforms/NewGVN/pr32607.ll b/llvm/test/Transforms/NewGVN/pr32607.ll
index 203ac75e2d0..635757d6425 100644
--- a/llvm/test/Transforms/NewGVN/pr32607.ll
+++ b/llvm/test/Transforms/NewGVN/pr32607.ll
@@ -6,7 +6,7 @@ define hidden void @foo() {
; CHECK-NEXT: br label [[IF:%.*]]
; CHECK: if:
; CHECK-NEXT: [[TMP0:%.*]] = phi double [ [[TMP1:%.*]], [[IF]] ], [ undef, [[TOP:%.*]] ]
-; CHECK-NEXT: [[TMP1]] = fadd double [[TMP0]], undef
+; CHECK-NEXT: [[TMP1]] = fadd double [[TMP0]], 1.000000e+00
; CHECK-NEXT: br i1 false, label [[L50:%.*]], label [[IF]]
; CHECK: L50:
; CHECK-NEXT: store i8 undef, i8* null
@@ -22,7 +22,7 @@ top:
if: ; preds = %if, %top
%0 = phi double [ %1, %if ], [ %.promoted, %top ]
- %1 = fadd double %0, undef
+ %1 = fadd double %0, 1.0
br i1 false, label %L50, label %if
L50: ; preds = %if
OpenPOWER on IntegriCloud