[GPGPU] Support Values referenced from both isl expr and llvm instructions
authorTobias Grosser <tobias@grosser.es>
Mon, 8 Aug 2016 19:22:19 +0000 (19:22 +0000)
committerTobias Grosser <tobias@grosser.es>
Mon, 8 Aug 2016 19:22:19 +0000 (19:22 +0000)
commit124534038a8df34d2c97a90bd9e668dcc2217988
tree9d8730161d6765ffbe439c79f058f67bbebae4ea
parent2f50725dbd67605a042881421c52cf093249405d
[GPGPU] Support Values referenced from both isl expr and llvm instructions

When adding code that avoids to pass values used in isl expressions and
LLVM instructions twice, we forgot to make single variable passed to the
kernel available in the ValueMap that makes it usable for instructions that
are not replaced with isl ast expressions. This change adds the variable
that is passed to the kernel to the ValueMap to ensure it is available
for such use cases as well.

llvm-svn: 278039
polly/lib/CodeGen/PPCGCodeGeneration.cpp
polly/test/GPGPU/scalar-param-and-value-use.ll [new file with mode: 0644]