summaryrefslogtreecommitdiffstats
path: root/llvm/test/Transforms/Reassociate/fast-basictest.ll
diff options
context:
space:
mode:
authorErik Verbruggen <erikjv@me.com>2014-08-21 10:45:30 +0000
committerErik Verbruggen <erikjv@me.com>2014-08-21 10:45:30 +0000
commit2b98bd2a80aea506506c6479e87283330edef86c (patch)
tree53e12be0117a60b8b41c6755189d68294d4beed2 /llvm/test/Transforms/Reassociate/fast-basictest.ll
parentb791ef21d2a11b9117abac5cc40ccae73a22c2a8 (diff)
downloadbcm5719-llvm-2b98bd2a80aea506506c6479e87283330edef86c.tar.gz
bcm5719-llvm-2b98bd2a80aea506506c6479e87283330edef86c.zip
Reassociate x + -0.1234 * y into x - 0.1234 * y
This does not require -ffast-math, and it gives CSE/GVN more options to eliminate duplicate expressions in, e.g.: return ((x + 0.1234 * y) * (x - 0.1234 * y)); Differential Revision: http://reviews.llvm.org/D4904 llvm-svn: 216169
Diffstat (limited to 'llvm/test/Transforms/Reassociate/fast-basictest.ll')
-rw-r--r--llvm/test/Transforms/Reassociate/fast-basictest.ll2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/test/Transforms/Reassociate/fast-basictest.ll b/llvm/test/Transforms/Reassociate/fast-basictest.ll
index 72808cd39f2..67b07f4d269 100644
--- a/llvm/test/Transforms/Reassociate/fast-basictest.ll
+++ b/llvm/test/Transforms/Reassociate/fast-basictest.ll
@@ -193,7 +193,7 @@ define float @test13(float %X1, float %X2, float %X3) {
define float @test14(float %X1, float %X2) {
; CHECK-LABEL: @test14
; CHECK-NEXT: fsub fast float %X1, %X2
-; CHECK-NEXT: fmul fast float %tmp, 4.700000e+01
+; CHECK-NEXT: fmul fast float %1, 4.700000e+01
; CHECK-NEXT: ret float
%B = fmul fast float %X1, 47. ; X1*47
OpenPOWER on IntegriCloud