[llvm] [InstCombine] Extend `foldICmpBinOp` to `add`-like `or`. (PR #71396)

Mikhail Gudim via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 6 06:15:38 PST 2023


================
@@ -4564,6 +4564,17 @@ static Instruction *foldICmpXorXX(ICmpInst &I, const SimplifyQuery &Q,
   return nullptr;
 }
 
----------------
mgudim wrote:

I have seen checks for `or` which is actually an `add` in other places. Should we make this into a centralized utility function?

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


More information about the llvm-commits mailing list