[Polly] [PPCGCodeGeneration] Handle failing of invariant load hoisting gracefully.
authorSiddharth Bhat <siddu.druid@gmail.com>
Tue, 8 Aug 2017 12:00:59 +0000 (12:00 +0000)
committerSiddharth Bhat <siddu.druid@gmail.com>
Tue, 8 Aug 2017 12:00:59 +0000 (12:00 +0000)
commit71dfb3eb074eb6237f631c23ba24fd5ca5fdd917
tree6c57d6c68c7e65dafc9d8a862ff9a4ed1302b3cd
parente528bd219343140d00293421279918a598834f62
[Polly] [PPCGCodeGeneration] Handle failing of invariant load hoisting gracefully.

To do this, we replicate what `CodeGeneration` does. We expose
`markNodeUnreachable` from `CodeGeneration` to `PPCGCodeGeneration`.

Differential Revision: https://reviews.llvm.org/D36457

llvm-svn: 310350
polly/include/polly/CodeGen/CodeGeneration.h
polly/lib/CodeGen/CodeGeneration.cpp
polly/lib/CodeGen/PPCGCodeGeneration.cpp
polly/test/GPGPU/failing-invariant-load-handling.ll [new file with mode: 0644]