[PATCH] D151916: [DAG] Peek through trunc when combining select into shifts.
Nikita Popov via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 20 01:56:22 PDT 2023
nikic added inline comments.
================
Comment at: llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp:2500
+ Op.getScalarValueSizeInBits());
+ if (TruncatedBits.isSubsetOf(Known.Zero))
+ Sel = Op;
----------------
`if (Known.countMaxActiveBits() < Sel.getScalarValueSizeInBits())` or so?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D151916/new/
https://reviews.llvm.org/D151916
More information about the llvm-commits
mailing list