[PATCH] D156778: [SelectionDAG] Improve `isKnownToBeAPowerOfTwo`
Noah Goldstein via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Aug 1 00:35:20 PDT 2023
goldstein.w.n created this revision.
goldstein.w.n added reviewers: RKSimon, pengfei.
Herald added a subscriber: 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.
Add additional cases for:
select, vselect, {u,s}{min,max}, and, casts, rotl, rotr
And improve handling of constants and shifts.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D156778
Files:
llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
llvm/test/CodeGen/X86/known-pow2.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D156778.545942.patch
Type: text/x-patch
Size: 8609 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230801/e58b020a/attachment.bin>
More information about the llvm-commits
mailing list