[all-commits] [llvm/llvm-project] 9397bd: [InstCombine] fold fcmp with lossy casted constant
Sanjay Patel via All-commits
all-commits at lists.llvm.org
Tue Mar 8 09:41:32 PST 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 9397bdc67eb2b9eedc247a89bef01c2484b48b89
https://github.com/llvm/llvm-project/commit/9397bdc67eb2b9eedc247a89bef01c2484b48b89
Author: Sanjay Patel <spatel at rotateright.com>
Date: 2022-03-08 (Tue, 08 Mar 2022)
Changed paths:
M llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp
M llvm/test/Transforms/InstCombine/fcmp.ll
Log Message:
-----------
[InstCombine] fold fcmp with lossy casted constant
This is noted as a missing clang warning in #54222
(and we should still make that enhancement).
Alive2 proofs:
https://alive2.llvm.org/ce/z/Q8drDq
https://alive2.llvm.org/ce/z/pE6LRt
I don't see a single conversion for all predicates
using "getFCmpCode" logic, so other predicates are
left as a TODO item.
More information about the All-commits
mailing list