From: Sanjay Patel Date: Fri, 10 Feb 2023 14:51:27 +0000 (-0500) Subject: [InstCombine] add 'tail' to exp2 call in test; NFC X-Git-Tag: upstream/17.0.6~17932 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e89180801cd2c3415be0fd95fa29700868d21081;p=platform%2Fupstream%2Fllvm.git [InstCombine] add 'tail' to exp2 call in test; NFC Tail markings are not propagated if the transform succeeds. --- 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 }