[PATCH] D26169: [Reassociate] Skip reassociation for IV if its def instruction contains NSW/NUW flags to enable better IndVar and LSR

Wei Mi via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 8 14:29:47 PST 2016


wmi updated this revision to Diff 77262.
wmi added a comment.
Herald added a subscriber: mehdi_amini.

Switch the order of reassociate and looprotate so reassociate will know more precisely whether the loop will be in simplified form and suitable for LSR. I expect the pass order change will not have noticeable impact.


Repository:
  rL LLVM

https://reviews.llvm.org/D26169

Files:
  include/llvm/Transforms/Scalar/Reassociate.h
  lib/Transforms/IPO/PassManagerBuilder.cpp
  lib/Transforms/Scalar/Reassociate.cpp
  test/Transforms/Reassociate/ivuse.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D26169.77262.patch
Type: text/x-patch
Size: 6463 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20161108/461f0c27/attachment.bin>


More information about the llvm-commits mailing list