[llvm] [GlobalISel] Avoid redundant copy for zero-offset GEPs (PR #203029)
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 11 02:43:11 PDT 2026
================
@@ -1661,6 +1661,9 @@ bool IRTranslator::translateGetElementPtr(const User &U,
WantSplatVector = VectorWidth > 1;
}
+ if (cast<GEPOperator>(U).hasAllZeroIndices())
----------------
nikic wrote:
I think that needs to be fixed in hasAllZeroIndices(), other uses expect it to not contain vector splats as well.
https://github.com/llvm/llvm-project/pull/203029
More information about the llvm-commits
mailing list