[llvm] [InstCombine] Simplify `floor`/`ceil` to `trunc` for integral tests (PR #190620)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 8 04:58:28 PDT 2026
================
@@ -8783,6 +8783,20 @@ static Instruction *foldFCmpWithFloorAndCeil(FCmpInst &I,
}
switch (Pred) {
+ case FCmpInst::FCMP_OEQ:
----------------
arsenm wrote:
That's fine, it's better to use the simpler function that doesn't require reading the list of compare types
https://github.com/llvm/llvm-project/pull/190620
More information about the llvm-commits
mailing list