[PATCH] D148225: ValueTracking: Handle shufflevector in computeKnownFPClass
Matt Arsenault via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 19 04:44:00 PDT 2023
arsenm added inline comments.
================
Comment at: llvm/lib/Analysis/ValueTracking.cpp:4610
+ APInt DemandedLHS, DemandedRHS;
+ auto *Shuf = dyn_cast<ShuffleVectorInst>(Op);
+ if (!Shuf || !getShuffleDemandedElts(Shuf, DemandedElts, DemandedLHS, DemandedRHS))
----------------
foad wrote:
> `cast` not `dyn_cast`
Shufflevector constant expressions do exist though I couldn’t figure out how to get one to reach here, so it’s better to leave it as is
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D148225/new/
https://reviews.llvm.org/D148225
More information about the llvm-commits
mailing list