[PATCH] D51831: [DAGCombine] Fix crash when store merging created an extract_subvector with invalid index
Nirav Dave via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 12 09:45:06 PDT 2018
niravd added inline comments.
================
Comment at: lib/CodeGen/SelectionDAG/DAGCombiner.cpp:13852
unsigned Elts = Vec.getValueType().getSizeInBits() /
MemVTScalarTy.getSizeInBits();
+ if (Val.getValueType().isVector()) {
----------------
Shouldn't the two NewIdx expressions should be equivalent (modulo integer overflow issues)?
NewIdx = ((unsigned long long) IdxC*MemVT.getVectorNumElements()) / Elts
Repository:
rL LLVM
https://reviews.llvm.org/D51831
More information about the llvm-commits
mailing list