[InstCombine] add 'tail' to exp2 call in test; NFC
authorSanjay Patel <spatel@rotateright.com>
Fri, 10 Feb 2023 14:51:27 +0000 (09:51 -0500)
committerSanjay Patel <spatel@rotateright.com>
Fri, 10 Feb 2023 15:02:14 +0000 (10:02 -0500)
Tail markings are not propagated if the transform succeeds.

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

index 92a06ee5185fa6c9fa4b473798d2b7656f193569..7c0288dee4b8b99fcf36a4a06c4f37502b576f5c 100644 (file)
@@ -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
 }