[PATCH] D148414: [InstCombine] Expand `foldSelectICmpAndOr` -> `foldSelectICmpAndBinOp` to work for any binop

Noah Goldstein via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 14 23:12:22 PDT 2023


goldstein.w.n created this revision.
goldstein.w.n added reviewers: majnemer, spatel, nikic, craig.topper.
Herald added subscribers: StephenFan, hiraditya.
Herald added a project: All.
goldstein.w.n requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

This just expands on the existing logic that worked for `Or` and
applies it for all binops.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D148414

Files:
  llvm/lib/Transforms/InstCombine/InstCombineSelect.cpp
  llvm/test/Transforms/InstCombine/select-with-bitwise-ops.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D148414.513849.patch
Type: text/x-patch
Size: 15109 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230415/cbaa0b75/attachment.bin>


More information about the llvm-commits mailing list