Skip to content

Commit

Permalink
[InstCombine] add 'tail' to exp2 call in test; NFC
Browse files Browse the repository at this point in the history
Tail markings are not propagated if the transform succeeds.
  • Loading branch information
rotateright committed Feb 10, 2023
1 parent 86bfeb9 commit e891808
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions llvm/test/Transforms/InstCombine/exp2-1.ll
Expand Up @@ -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
}

Expand Down

0 comments on commit e891808

Please sign in to comment.