[CodeGen] Add assertion for indirect array index expression generation. NFC.
commitd6823ced0f62d57b26312fc14871c17c5a0ee7e8
authorMichael Kruse <llvm@meinersbur.de>
Fri, 30 Sep 2016 18:29:37 +0000 (30 18:29 +0000)
committerMichael Kruse <llvm@meinersbur.de>
Fri, 30 Sep 2016 18:29:37 +0000 (30 18:29 +0000)
treef44cda775934b95c6786a407e70d4acdd20b03c0
parent170bf36c486850429a171ae0cdeb5b68ed11df5b
[CodeGen] Add assertion for indirect array index expression generation. NFC.

Currently Polly cannot generate code for index expressions if the base pointer
is computed within the scop. The base pointer must be generated as well, but
there is no code that triggers that.

Add an assertion to detect when this would occur and miscompile. The IR verifier
should catch it as well.

git-svn-id: https://llvm.org/svn/llvm-project/polly/trunk@282893 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/IslNodeBuilder.cpp