[PATCH] D51428: SLPVectorizer: Fix assert with different sized address spaces
Alexey Bataev via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 29 09:27:28 PDT 2018
ABataev added inline comments.
================
Comment at: lib/Transforms/Vectorize/SLPVectorizer.cpp:6402
auto *SCEVJ = SE->getSCEV(GEPList[J]);
- if (isa<SCEVConstant>(SE->getMinusSCEV(SCEVI, SCEVJ))) {
+ if (SCEVJ->getType() == SCEVI->getType() &&
+ isa<SCEVConstant>(SE->getMinusSCEV(SCEVI, SCEVJ))) {
----------------
I don't think this is correct. Instead, you should try to collect GEPs with the different address spaces into different nodes
https://reviews.llvm.org/D51428
More information about the llvm-commits
mailing list