[llvm] [InstCombine] Fold expression using basic properties of floor and ceiling function (PR #107107)

Yingwei Zheng via llvm-commits llvm-commits at lists.llvm.org
Sat Sep 7 18:47:49 PDT 2024


================
@@ -8178,6 +8178,81 @@ static Instruction *foldFCmpFSubIntoFCmp(FCmpInst &I, Instruction *LHSI,
   return nullptr;
 }
 
+static Instruction *foldFCmpWithFloorAndCeil(FCmpInst &I,
+                                             InstCombinerImpl &CI) {
----------------
dtcxzyw wrote:

```suggestion
                                             InstCombinerImpl &IC) {
```

https://github.com/llvm/llvm-project/pull/107107


More information about the llvm-commits mailing list