llvm-project
llvm-project copied to clipboard
missed optimization, fptrunc (x) >= C1 => x >= C2
https://alive2.llvm.org/ce/z/n53up6 https://godbolt.org/z/q6vrbxTo3
define i1 @src(double %0) {
if.end155:
%1 = fptrunc double %0 to float
%2 = fcmp oge float %1, 1.000000e+02
ret i1 %2
}
define i1 @tgt(double %0) {
if.end155:
%oge = fcmp oge double %0, 0x4058FFFFF0000000
ret i1 %oge
}
Other variants may follow the same patterns.
Hi!
This issue may be a good introductory issue for people new to working on LLVM. If you would like to work on this issue, your first steps are:
- In the comments of the issue, request for it to be assigned to you.
- Fix the issue locally.
-
Run the test suite locally. Remember that the subdirectories under
test/
create fine-grained testing targets, so you can e.g. usemake check-clang-ast
to only run Clang's AST tests. - Create a Git commit.
- Run
git clang-format HEAD~1
to format your changes. - Open a pull request to the upstream repository on GitHub. Detailed instructions can be found in GitHub's documentation.
If you have any further questions about this issue, don't hesitate to ask via a comment in the thread below.
@llvm/issue-subscribers-good-first-issue
Author: Zhengyang Liu (zhengyang92)
Other variants may follow the same patterns.
Could you please provide proofs about FMF propagation for all your recent issues? Thank you :)
Hey all, I'd like to claim working on this issue if possible.