[PATCH] D148440: [InstCombine] Fold zext(shl(trunc)) into and(shl)
Kazu Hirata via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sat Apr 15 20:01:22 PDT 2023
kazu added a comment.
I missed the entire block of code in `InstCombinerImpl::visitZExt` to widen an expression tree:
// Try to extend the entire expression tree to the wide destination type.
unsigned BitsToClear;
if (shouldChangeType(SrcTy, DestTy) &&
canEvaluateZExtd(Src, DestTy, BitsToClear, *this, &Zext)) {
Let me see if I could modify this block code to accommodate our trunc-shl-zext sequence.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D148440/new/
https://reviews.llvm.org/D148440
More information about the llvm-commits
mailing list