Skip to content
Unverified Commit 8773c9be authored by Mikhail Gudim's avatar Mikhail Gudim Committed by GitHub
Browse files

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

InstCombine canonicalizes `add` to `or` when possible, but this makes
some optimizations applicable to `add` to be missed because they don't
realize that the `or` is equivalent to `add`.

In this patch we generalize `foldICmpBinOp` to handle such cases.
parent cf4dd911
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment