[PPCGCodeGeneration] Generate invariant loads before trying to generate IR.
commite6614e74efc2539acf86d8bc579b606e39da0ae1
authorSiddharth Bhat <siddu.druid@gmail.com>
Mon, 17 Jul 2017 15:57:01 +0000 (17 15:57 +0000)
committerSiddharth Bhat <siddu.druid@gmail.com>
Mon, 17 Jul 2017 15:57:01 +0000 (17 15:57 +0000)
tree229fd34a1ab4457f3abb21fb41d23b46d25de35f
parentbb2ae30a00235a2d428088c5f8fc1c8d10e73028
 [PPCGCodeGeneration] Generate invariant loads before trying to generate IR.

 - We should call `preloadInvariantLoads` to make sure that code is
   generated for invariant loads in the kernel.

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

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