[llvm] [InstCombine] Canonicalize more geps with constant gep bases and constant offsets. (PR #110033)

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 27 00:36:11 PDT 2024


================
@@ -2736,6 +2736,35 @@ Value *InstCombiner::getFreelyInvertedImpl(Value *V, bool WillInvertAllUses,
   return nullptr;
 }
 
+// Return true if we should canonicalize the gep to a i8 ptradd.
----------------
nikic wrote:

```suggestion
/// Return true if we should canonicalize the gep to an i8 ptradd.
```

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


More information about the llvm-commits mailing list