[PATCH] D29585: [SCEV] Fix for PR31847: Assertion failed: (isLoopInvariant(Operands[i], L) && "SCEVAddRecExpr operand is not loop-invariant!")

Alexey Bataev via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Feb 6 08:22:15 PST 2017


ABataev created this revision.
Herald added a subscriber: mzolotukhin.

Sometimes during folding loop invariants the resulting add recurrence may become non-invariant. This may lead to crash during next folding of recurrences expected to be invariants, which are not.


https://reviews.llvm.org/D29585

Files:
  lib/Analysis/ScalarEvolution.cpp
  test/Transforms/SLPVectorizer/X86/vectorize-crash-geps-with-scev.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D29585.87235.patch
Type: text/x-patch
Size: 8031 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170206/1c26ca70/attachment.bin>


More information about the llvm-commits mailing list