[PATCH] D29641: [SLP] 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 Sep 23 07:37:21 PDT 2019


ABataev marked 2 inline comments as done.
ABataev added inline comments.


================
Comment at: lib/Transforms/Vectorize/SLPVectorizer.cpp:5895
       }
+      llvm_unreachable("Reduction kind is not set");
     }
----------------
RKSimon wrote:
> Why is this change necessary?
Restored original code


Repository:
  rL LLVM

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D29641/new/

https://reviews.llvm.org/D29641





More information about the llvm-commits mailing list