commit | 394cef803a401163a1ad2d472fcd117c68ef2eef | [log] [tgz] |
---|---|---|
author | Zia Ansari <zia.ansari@intel.com> | Thu Dec 08 23:27:40 2016 +0000 |
committer | Zia Ansari <zia.ansari@intel.com> | Thu Dec 08 23:27:40 2016 +0000 |
tree | 3796ce36a336d1bb1f676cfcf57d0786c60603af | |
parent | 95c7d8d2a7b02bf56132ca137f3960bd917ea84b [diff] [blame] |
[InstSimplify] Add "X / 1.0" to SimplifyFDivInst. Differential Revision: https://reviews.llvm.org/D27587 llvm-svn: 289153
diff --git a/llvm/test/Transforms/InstSimplify/floating-point-arithmetic.ll b/llvm/test/Transforms/InstSimplify/floating-point-arithmetic.ll index ef8adcb..21c9fdd 100644 --- a/llvm/test/Transforms/InstSimplify/floating-point-arithmetic.ll +++ b/llvm/test/Transforms/InstSimplify/floating-point-arithmetic.ll
@@ -62,12 +62,10 @@ 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