[SelectionDAG] Make getUniformBase in SelectionDAGBuilder fail if any of the middle...
commitb456381b8c9f1820c2a35a0bc0e0a63fe09c8cdf
authorCraig Topper <craig.topper@intel.com>
Fri, 10 Nov 2017 23:36:56 +0000 (10 23:36 +0000)
committerCraig Topper <craig.topper@intel.com>
Fri, 10 Nov 2017 23:36:56 +0000 (10 23:36 +0000)
tree514861466c454b3291ba09ce52f4f3eaee3c66a9
parenta90caca76f4e68b7ede33333cfd824251385df77
[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