[PATCH] D38415: [SimplifyIndVar] Replace IVUsers with loop invariant if possible

Hongbin Zheng via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Sep 30 21:22:37 PDT 2017


etherzhhb updated this revision to Diff 117270.
etherzhhb added a comment.

Looks like I need to pass the SCEVExpander from the  IndVarSimpilfy pass to coordinate SCEV rewrite, otherwise we will fail test/Transforms/IndVarSimplify/pr20680.ll


Repository:
  rL LLVM

https://reviews.llvm.org/D38415

Files:
  include/llvm/Transforms/Utils/SimplifyIndVar.h
  lib/Transforms/Scalar/IndVarSimplify.cpp
  lib/Transforms/Utils/SimplifyIndVar.cpp
  test/Transforms/IndVarSimplify/constant-fold-1.ll
  test/Transforms/IndVarSimplify/replace-iv-with-loop-invariant.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D38415.117270.patch
Type: text/x-patch
Size: 10010 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20171001/790c5637/attachment-0001.bin>


More information about the llvm-commits mailing list