[PATCH] D149082: [VPlan] Use VPIRFlags for VPWidenGEPRecipe (NFCI).

Ayal Zaks via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed May 3 14:33:52 PDT 2023


Ayal added a comment.

LGTM, pending points raised in D149081 <https://reviews.llvm.org/D149081> review.



================
Comment at: llvm/lib/Transforms/Vectorize/VPlanRecipes.cpp:804
     auto *Clone = State.Builder.Insert(GEP->clone());
+    cast<GetElementPtrInst>(Clone)->setIsInBounds(isInBounds());
     for (unsigned Part = 0; Part < State.UF; ++Part) {
----------------
Call transferFlags() instead, if only to be consistent and exercised?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D149082/new/

https://reviews.llvm.org/D149082



More information about the llvm-commits mailing list