[llvm] 032a939 - [InstCombine] Use minimal FMF in testcase for Z / (1.0 / Y) => (Y * Z); NFC

Sanjay Patel via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 9 05:21:48 PST 2020


Author: Sanjay Patel
Date: 2020-01-09T08:21:38-05:00
New Revision: 032a9393a739a1ef8c30979e2493971207c3c397

URL: https://github.com/llvm/llvm-project/commit/032a9393a739a1ef8c30979e2493971207c3c397
DIFF: https://github.com/llvm/llvm-project/commit/032a9393a739a1ef8c30979e2493971207c3c397.diff

LOG: [InstCombine] Use minimal FMF in testcase for Z / (1.0 / Y) => (Y * Z); NFC

Patch by: @raghesh (Raghesh Aloor)

Differential Revision: https://reviews.llvm.org/D72431

Added: 
    

Modified: 
    llvm/test/Transforms/InstCombine/fdiv.ll

Removed: 
    


################################################################################
diff  --git a/llvm/test/Transforms/InstCombine/fdiv.ll b/llvm/test/Transforms/InstCombine/fdiv.ll
index 8bfeb67f6e06..178fe1bcef43 100644
--- a/llvm/test/Transforms/InstCombine/fdiv.ll
+++ b/llvm/test/Transforms/InstCombine/fdiv.ll
@@ -192,12 +192,12 @@ define float @div_with_div_denominator_extra_use(float %x, float %y, float %z) {
 define float @div_with_div_denominator_with_one_as_numerator_extra_use(float %x, float %y, float %z) {
 ; CHECK-LABEL: @div_with_div_denominator_with_one_as_numerator_extra_use(
 ; CHECK-NEXT:    [[DIV1:%.*]] = fdiv float 1.000000e+00, [[Y:%.*]]
-; CHECK-NEXT:    [[DIV2:%.*]] = fdiv fast float [[Z:%.*]], [[DIV1]]
+; CHECK-NEXT:    [[DIV2:%.*]] = fdiv reassoc arcp float [[Z:%.*]], [[DIV1]]
 ; CHECK-NEXT:    call void @use_f32(float [[DIV1]])
 ; CHECK-NEXT:    ret float [[DIV2]]
 ;
   %div1 = fdiv float 1.0, %y
-  %div2 = fdiv fast float %z, %div1
+  %div2 = fdiv reassoc arcp float %z, %div1
   call void @use_f32(float %div1)
   ret float %div2
 }


        


More information about the llvm-commits mailing list