[llvm] [SeparateConstOffsetFromGEP] Don't set unsound inbounds flag (PR #130616)

Fabian Ritter via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 12 03:16:26 PDT 2025


================
@@ -1103,7 +1103,7 @@ bool SeparateConstOffsetFromGEP::splitGEP(GetElementPtrInst *GEP) {
   // TODO(jingyue): do some range analysis to keep as many inbounds as
   // possible. GEPs with inbounds are more friendly to alias analysis.
   // TODO(gep_nowrap): Preserve nuw at least.
-  bool GEPWasInBounds = GEP->isInBounds();
+  auto NewGEPFlags = GEPNoWrapFlags::none();
----------------
ritter-x2a wrote:

done

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


More information about the llvm-commits mailing list