[llvm] [Analysis] Attribute Range should not prevent tail call optimization (PR #91122)
Andreas Jonson via llvm-commits
llvm-commits at lists.llvm.org
Tue May 7 09:54:59 PDT 2024
andjo403 wrote:
hmm did a comment on the thread of comments on the test but had not noticed that it was marked as resolved do not know if it was removed
I suggested
```
declare i32 @callee()
define range(i32 0, 2) i32 @func_with_range_attr() {
%1 = musttail call i32 @callee()
ret i32 %1
}
define i32 @call_with_range_attr() {
%1 = musttail call range(i32 0, 2) i32 @callee()
ret i32 %1
}
```
https://github.com/llvm/llvm-project/pull/91122
More information about the llvm-commits
mailing list