[PATCH] D152673: [InstCombine] Canonicalize `(X^(X-1)) u{ge, lt} X` as pow2 test
Noah Goldstein via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Jun 11 23:28:46 PDT 2023
goldstein.w.n created this revision.
goldstein.w.n added reviewers: nikic, spatel.
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.
Also hoist the current canoniclizations from `foldICmpEquality` to
keep all the logic in the same place.
https://alive2.llvm.org/ce/z/T8osF6
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D152673
Files:
llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp
llvm/test/Transforms/InstCombine/ispow2.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D152673.530396.patch
Type: text/x-patch
Size: 5298 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230612/be3bdb92/attachment.bin>
More information about the llvm-commits
mailing list