[PATCH] D113291: [AggressiveInstCombine] Lower Table Based CTTZ
Sanjay Patel via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sat Aug 27 11:32:57 PDT 2022
spatel accepted this revision.
spatel added a comment.
This revision is now accepted and ready to land.
LGTM
================
Comment at: llvm/lib/Transforms/AggressiveInstCombine/AggressiveInstCombine.cpp:584-586
+ Value *Idx1 = GEP->idx_begin()->get();
+ Constant *Zero = dyn_cast<Constant>(Idx1);
+ if (!Zero || !Zero->isZeroValue())
----------------
Could shorten this by using something like:
if (!match(GEP->idx_begin()->get(), m_ZeroInt())) return false;
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D113291/new/
https://reviews.llvm.org/D113291
More information about the llvm-commits
mailing list