[llvm] e891808 - [InstCombine] add 'tail' to exp2 call in test; NFC

Sanjay Patel via llvm-commits llvm-commits at lists.llvm.org
Fri Feb 10 07:03:53 PST 2023


Author: Sanjay Patel
Date: 2023-02-10T10:02:14-05:00
New Revision: e89180801cd2c3415be0fd95fa29700868d21081

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

LOG: [InstCombine] add 'tail' to exp2 call in test; NFC

Tail markings are not propagated if the transform succeeds.

Added: 
    

Modified: 
    llvm/test/Transforms/InstCombine/exp2-1.ll

Removed: 
    


################################################################################
diff  --git a/llvm/test/Transforms/InstCombine/exp2-1.ll b/llvm/test/Transforms/InstCombine/exp2-1.ll
index 92a06ee5185f..7c0288dee4b8 100644
--- a/llvm/test/Transforms/InstCombine/exp2-1.ll
+++ b/llvm/test/Transforms/InstCombine/exp2-1.ll
@@ -290,16 +290,16 @@ define float @sitofp_scalar_intrinsic_with_FMF(i8 %x) {
 ;
 ; NOLDEXPF-LABEL: @sitofp_scalar_intrinsic_with_FMF(
 ; NOLDEXPF-NEXT:    [[S:%.*]] = sitofp i8 [[X:%.*]] to float
-; NOLDEXPF-NEXT:    [[R:%.*]] = call nnan float @llvm.exp2.f32(float [[S]])
+; NOLDEXPF-NEXT:    [[R:%.*]] = tail call nnan float @llvm.exp2.f32(float [[S]])
 ; NOLDEXPF-NEXT:    ret float [[R]]
 ;
 ; NOLDEXP-LABEL: @sitofp_scalar_intrinsic_with_FMF(
 ; NOLDEXP-NEXT:    [[S:%.*]] = sitofp i8 [[X:%.*]] to float
-; NOLDEXP-NEXT:    [[R:%.*]] = call nnan float @llvm.exp2.f32(float [[S]])
+; NOLDEXP-NEXT:    [[R:%.*]] = tail call nnan float @llvm.exp2.f32(float [[S]])
 ; NOLDEXP-NEXT:    ret float [[R]]
 ;
   %s = sitofp i8 %x to float
-  %r = call nnan float @llvm.exp2.f32(float %s)
+  %r = tail call nnan float @llvm.exp2.f32(float %s)
   ret float %r
 }
 


        


More information about the llvm-commits mailing list