[GPGPU] Set Polly's RTC to false in case invariant load hoisting fails
commit13d52216c1ec5ca837af04e46c0fcc4b06ca81a5
authorTobias Grosser <tobias@grosser.es>
Sun, 1 Oct 2017 12:39:14 +0000 (1 12:39 +0000)
committerTobias Grosser <tobias@grosser.es>
Sun, 1 Oct 2017 12:39:14 +0000 (1 12:39 +0000)
treef7ecf35e95c08bc11d8134b0d3fdb45a17fce9e3
parent2f54f46f63f087b48cfd92d90b15675d7a87b109
[GPGPU] Set Polly's RTC to false in case invariant load hoisting fails

This matches the behavior we already have in lib/Codegen/CodeGeneration.cpp and
makes sure that we fall back to the original code. It seems when invariant load
hoisting was introduced to the GPGPU backend we missed to reset the RTC flag,
such that kernels where invariant load hoisting failed executed the 'optimized'
SCoP, which however is set to a simple 'unreachable'. Unsurprisingly, this
results in hard to debug issues that are a lot of fun to debug.

git-svn-id: https://llvm.org/svn/llvm-project/polly/trunk@314624 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/PPCGCodeGeneration.cpp
test/GPGPU/failing-invariant-load-hoisting.ll [new file with mode: 0644]