OSDN Git Service

[SelectionDAG] Make getUniformBase in SelectionDAGBuilder fail if any of the middle...
authorCraig Topper <craig.topper@intel.com>
Fri, 10 Nov 2017 23:36:56 +0000 (23:36 +0000)
committerCraig Topper <craig.topper@intel.com>
Fri, 10 Nov 2017 23:36:56 +0000 (23:36 +0000)
commitaa795776c91d8686c16fdd8442b5eca980174ba4
tree514861466c454b3291ba09ce52f4f3eaee3c66a9
parentd3e2d8422adcb0edda9e941bc09cb27f2c4a387c
[SelectionDAG] Make getUniformBase in SelectionDAGBuilder fail if any of the middle GEP indices are non-constant.

This is a fix for a bug in r317947. We were supposed to check that all the indices are are constant 0, but instead we're only make sure that indices that are constant are 0. Non-constant indices are being ignored.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@317950 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp