[CodeGen] Add assertion for indirect array index expression generation. NFC.
authorMichael Kruse <llvm@meinersbur.de>
Fri, 30 Sep 2016 18:29:37 +0000 (18:29 +0000)
committerMichael Kruse <llvm@meinersbur.de>
Fri, 30 Sep 2016 18:29:37 +0000 (18:29 +0000)
commit4b0c5aea7856eacf0e309360a3e72cf96cf602e9
tree321f3ef65a7c9175f397a40498ff4c826c7179c7
parentcfa31b6307d2d2ecb0a9c9c3b81c0305531ffadd
[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.

llvm-svn: 282893
polly/lib/CodeGen/IslNodeBuilder.cpp