summaryrefslogtreecommitdiffstats
path: root/llvm/test/Transforms/InstSimplify/floating-point-arithmetic.ll
diff options
context:
space:
mode:
authorZia Ansari <zia.ansari@intel.com>2016-12-08 23:27:40 +0000
committerZia Ansari <zia.ansari@intel.com>2016-12-08 23:27:40 +0000
commit394cef803a401163a1ad2d472fcd117c68ef2eef (patch)
tree3796ce36a336d1bb1f676cfcf57d0786c60603af /llvm/test/Transforms/InstSimplify/floating-point-arithmetic.ll
parent95c7d8d2a7b02bf56132ca137f3960bd917ea84b (diff)
downloadbcm5719-llvm-394cef803a401163a1ad2d472fcd117c68ef2eef.tar.gz
bcm5719-llvm-394cef803a401163a1ad2d472fcd117c68ef2eef.zip
[InstSimplify] Add "X / 1.0" to SimplifyFDivInst.
Differential Revision: https://reviews.llvm.org/D27587 llvm-svn: 289153
Diffstat (limited to 'llvm/test/Transforms/InstSimplify/floating-point-arithmetic.ll')
-rw-r--r--llvm/test/Transforms/InstSimplify/floating-point-arithmetic.ll4
1 files changed, 1 insertions, 3 deletions
diff --git a/llvm/test/Transforms/InstSimplify/floating-point-arithmetic.ll b/llvm/test/Transforms/InstSimplify/floating-point-arithmetic.ll
index ef8adcb1646..21c9fdde150 100644
--- a/llvm/test/Transforms/InstSimplify/floating-point-arithmetic.ll
+++ b/llvm/test/Transforms/InstSimplify/floating-point-arithmetic.ll
@@ -62,12 +62,10 @@ define double @fmul_X_1(double %a) {
ret double %b
}
-; FIXME:
; fdiv X, 1.0 ==> X
define float @fdiv_x_1(float %a) {
; CHECK-LABEL: @fdiv_x_1(
-; CHECK-NEXT: [[RET:%.*]] = fdiv float %a, 1.000000e+00
-; CHECK-NEXT: ret float [[RET]]
+; CHECK-NEXT: ret float %a
;
%ret = fdiv float %a, 1.0
ret float %ret
OpenPOWER on IntegriCloud