[PATCH] D64286: [LFTR] Don't use post-inc IV unless already used

Nikita Popov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Jul 6 07:55:21 PDT 2019


nikic created this revision.
nikic added reviewers: reames, sanjoy.
Herald added subscribers: llvm-commits, hiraditya.
Herald added a project: LLVM.

As discussed on D63686 <https://reviews.llvm.org/D63686>, this switches LFTR to not use the post-inc form, unless the existing IV already used a post-inc check. Converting to pre-inc to post-inc form is left to LSR.


Repository:
  rL LLVM

https://reviews.llvm.org/D64286

Files:
  llvm/lib/Transforms/Scalar/IndVarSimplify.cpp
  llvm/test/Transforms/IndVarSimplify/2011-11-01-lftrptr.ll
  llvm/test/Transforms/IndVarSimplify/drop-exact.ll
  llvm/test/Transforms/IndVarSimplify/eliminate-comparison.ll
  llvm/test/Transforms/IndVarSimplify/eliminate-trunc.ll
  llvm/test/Transforms/IndVarSimplify/lftr-dead-ivs.ll
  llvm/test/Transforms/IndVarSimplify/lftr-multi-exit.ll
  llvm/test/Transforms/IndVarSimplify/lftr-pr20680.ll
  llvm/test/Transforms/IndVarSimplify/lftr-pr31181.ll
  llvm/test/Transforms/IndVarSimplify/lftr-pr41998.ll
  llvm/test/Transforms/IndVarSimplify/lftr.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D64286.208273.patch
Type: text/x-patch
Size: 28262 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190706/03cf65f4/attachment.bin>


More information about the llvm-commits mailing list