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

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 11 09:09:09 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();
----------------
arsenm wrote:

no auto? 

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


More information about the llvm-commits mailing list