[PATCH] D112193: [Polly][NFC] Switch createSubstitutions and createSubstitutionsVector to use isl::ast_expr

Michael Kruse via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 20 20:09:35 PDT 2021


Meinersbur added inline comments.


================
Comment at: polly/lib/CodeGen/IslNodeBuilder.cpp:932
+                                         LoopToScevMapT &LTS) {
+  assert(isl_ast_expr_get_type(Expr.get()) == isl_ast_expr_op &&
          "Expression of type 'op' expected");
----------------



================
Comment at: polly/lib/CodeGen/IslNodeBuilder.cpp:939
 
-    SubExpr = isl_ast_expr_get_op_arg(Expr, i + 1);
-    V = ExprBuilder.create(SubExpr);
+    V = ExprBuilder.create(isl_ast_expr_copy(Expr.op_arg(i + 1).get()));
     ScalarEvolution *SE = Stmt->getParent()->getSE();
----------------



Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D112193



More information about the llvm-commits mailing list