[PATCH] D94204: GlobalISel: Handle G_BUILD_VECTOR in isKnownToBeAPowerOfTwo
Amara Emerson via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jan 7 15:30:12 PST 2021
aemerson added inline comments.
================
Comment at: llvm/lib/CodeGen/GlobalISel/Utils.cpp:596
+ for (unsigned I = 1, E = MI.getNumOperands(); I != E; ++I) {
+ if (!isKnownToBeAPowerOfTwo(MI.getOperand(I).getReg(), MRI, KB))
+ return false;
----------------
What does it mean for a build_vector to be a known power of 2? Each element is *any* power of 2, or the vector is a splat of a power of 2?
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D94204/new/
https://reviews.llvm.org/D94204
More information about the llvm-commits
mailing list