summaryrefslogtreecommitdiffstats
path: root/llvm/test/Transforms/Reassociate/fp-expr.ll
diff options
context:
space:
mode:
authorSanjay Patel <spatel@rotateright.com>2018-03-08 20:42:49 +0000
committerSanjay Patel <spatel@rotateright.com>2018-03-08 20:42:49 +0000
commit2ee7b9349dafb9bbc2350473314fa8723efb3a43 (patch)
tree7fce626edba54ccc0ce73f1e4abbc48cedf012d2 /llvm/test/Transforms/Reassociate/fp-expr.ll
parentadad33011f3f5511e5959362fc33003e1e378eb6 (diff)
downloadbcm5719-llvm-2ee7b9349dafb9bbc2350473314fa8723efb3a43.tar.gz
bcm5719-llvm-2ee7b9349dafb9bbc2350473314fa8723efb3a43.zip
[ConstantFold] fp_binop undef, undef --> undef
These are uncontroversial and independent of a proposed LangRef edits (D44216). I tried to fix tests that would fold away: rL327004 rL327028 rL327030 rL327034 I'm not sure if the Reassociate tests are meaningless yet, but they probably will be as we add more folds, so if anyone has suggestions or wants to fix those, please do. Differential Revision: https://reviews.llvm.org/D44258 llvm-svn: 327058
Diffstat (limited to 'llvm/test/Transforms/Reassociate/fp-expr.ll')
-rw-r--r--llvm/test/Transforms/Reassociate/fp-expr.ll5
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/test/Transforms/Reassociate/fp-expr.ll b/llvm/test/Transforms/Reassociate/fp-expr.ll
index d0ad55539a3..e616c52f28e 100644
--- a/llvm/test/Transforms/Reassociate/fp-expr.ll
+++ b/llvm/test/Transforms/Reassociate/fp-expr.ll
@@ -1,10 +1,11 @@
+; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
; RUN: opt -S -reassociate < %s | FileCheck %s
define void @test1() {
; CHECK-LABEL: @test1(
; CHECK-NEXT: [[T1:%.*]] = tail call <4 x float> @blam()
; CHECK-NEXT: [[T1_NEG:%.*]] = fsub fast <4 x float> <float -0.000000e+00, float -0.000000e+00, float -0.000000e+00, float -0.000000e+00>, [[T1]]
-; CHECK-NEXT: [[T24:%.*]] = fadd fast <4 x float> [[T1_NEG]], fadd (<4 x float> undef, <4 x float> undef)
+; CHECK-NEXT: [[T24:%.*]] = fadd fast <4 x float> [[T1_NEG]], undef
; CHECK-NEXT: tail call void @wombat(<4 x float> [[T24]])
; CHECK-NEXT: ret void
;
@@ -19,7 +20,7 @@ define half @test2() {
; CHECK-LABEL: @test2(
; CHECK-NEXT: [[T15:%.*]] = fsub fast half undef, undef
; CHECK-NEXT: [[T15_NEG:%.*]] = fsub fast half 0xH8000, [[T15]]
-; CHECK-NEXT: [[T18:%.*]] = fadd fast half [[T15_NEG]], fadd (half undef, half undef)
+; CHECK-NEXT: [[T18:%.*]] = fadd fast half [[T15_NEG]], undef
; CHECK-NEXT: ret half [[T18]]
;
%t15 = fsub fast half undef, undef
OpenPOWER on IntegriCloud