When checking the RHS of fdiv, we should set the SignBitOnly flag, because a negative zero can become -Inf, which is ordered less than zero.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
LGTM
llvm/test/Transforms/InstSimplify/floating-point-compare.ll | ||
---|---|---|
1002 | This wasn't just wrong...it was really, really wrong. :) Worth a TODO; some missing analysis of int-to-FP casts? |
llvm/test/Transforms/InstSimplify/floating-point-compare.ll | ||
---|---|---|
1002 | It looks like our fmul zero folds currently only support FMF folds, not anything ValueTracking based: https://github.com/llvm/llvm-project/blob/8b38a2c0a55a9140115a91959326918d99bea435/llvm/lib/Analysis/InstructionSimplify.cpp#L5313-L5319 |
This wasn't just wrong...it was really, really wrong. :)
https://alive2.llvm.org/ce/z/p4D5Bo
Worth a TODO; some missing analysis of int-to-FP casts?