[llvm] [GlobalISel] Avoid redundant copy for zero-offset GEPs (PR #203029)

Alexis Engelke via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 11 03:36:55 PDT 2026


================
@@ -1661,6 +1661,9 @@ bool IRTranslator::translateGetElementPtr(const User &U,
     WantSplatVector = VectorWidth > 1;
   }
 
+  if (cast<GEPOperator>(U).hasAllZeroIndices())
----------------
aengelke wrote:

Alright then :)

https://github.com/llvm/llvm-project/pull/203029


More information about the llvm-commits mailing list