[PATCH] D33121: [SCEV] Fix sorting order for AddRecExprs

Max Kazantsev via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun May 14 23:39:48 PDT 2017


mkazantsev updated this revision to Diff 98947.
mkazantsev retitled this revision from "[SCEV] Fix getAddExpr for recurrencies from different loops" to "[SCEV] Fix sorting order for AddRecExprs".
mkazantsev edited the summary of this revision.
mkazantsev added a comment.

Thanks Sanjoy, it seems that the approach with sorting order works well. I followed this approach and also added 2 more tests with nested loops.


https://reviews.llvm.org/D33121

Files:
  lib/Analysis/ScalarEvolution.cpp
  test/Analysis/ScalarEvolution/different-loops-recs.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D33121.98947.patch
Type: text/x-patch
Size: 20895 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170515/aa6c05cb/attachment.bin>


More information about the llvm-commits mailing list