[PATCH] D40369: Support sext, zext and trunc instructions in SCEV delinearization algorithm (new revision)

Roman Lebedev via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 6 12:39:40 PDT 2018


lebedev.ri added inline comments.


================
Comment at: test/Analysis/Delinearization/test_sext.ll:41
+
+; SCEV/AddRec: {(4 * (sext i32 {{0,+,(%N * %N)}<%for.body3.lr.ph.split.us.us>,+,%N}<%for.body3.us.us> to i64)),+,4}<nsw><%for.body6.us.us>
+
----------------
I'm guessing this is the expected result that you want to check?
It needs to be actually checked..

Look at other files in that directory, e.g. `test/Analysis/Delinearization/constant_functions_multi_dim.ll`
You are missing `; RUN: opt -delinearize -analyze < %s | FileCheck %s` as the first line, and the actual check line.
And check if `llvm/utils/update_test_checks.py` can help generate the actual check lines.


Repository:
  rL LLVM

https://reviews.llvm.org/D40369





More information about the llvm-commits mailing list