llvm-project/polly/lib/CodeGen
Siddharth Bhat 03346c2701 [PPCGCodeGeneration] Fix runtime check adjustments since they make assumptions about BB layout.
- There is a conditional branch that is used to switch between the old
   and new versions of the code.

- If we detect that the build was unsuccessful, `PPCGCodeGeneration` will
  change the runtime check to be always set to false.

- To actually *reach* this runtime check instruction, `PPCGCodeGeneration`
  was using assumptions about the layout of the BBs.

- However, invariant load hoisting violates this assumption by inserting
  an extra basic block in the middle.

- Fix the assumption on the layout by having `createScopConditionally`
   return the conditional branch instruction.

- Use this reference to set to always-false.

llvm-svn: 308010
2017-07-14 10:00:25 +00:00
..
BlockGenerators.cpp Fix a lot of typos. NFC. 2017-06-08 12:06:15 +00:00
CodeGeneration.cpp [PPCGCodeGeneration] Fix runtime check adjustments since they make assumptions about BB layout. 2017-07-14 10:00:25 +00:00
CodegenCleanup.cpp Fix a lot of typos. NFC. 2017-06-08 12:06:15 +00:00
IRBuilder.cpp [CodeGen] Emit aliasing metadata for new arrays. 2017-06-19 10:19:29 +00:00
IslAst.cpp [IslAst] Print memory accesses in AST dump 2017-07-10 20:13:06 +00:00
IslExprBuilder.cpp Fix a lot of typos. NFC. 2017-06-08 12:06:15 +00:00
IslNodeBuilder.cpp [Invariant Loads] Do not consider invariant loads to have dependences. 2017-07-13 12:18:56 +00:00
LoopGenerators.cpp Fix a lot of typos. NFC. 2017-06-08 12:06:15 +00:00
PPCGCodeGeneration.cpp [PPCGCodeGeneration] Fix runtime check adjustments since they make assumptions about BB layout. 2017-07-14 10:00:25 +00:00
PerfMonitor.cpp Fix a lot of typos. NFC. 2017-06-08 12:06:15 +00:00
RuntimeDebugBuilder.cpp Update for alloca construction changes 2017-04-11 00:12:58 +00:00
Utils.cpp [PPCGCodeGeneration] Fix runtime check adjustments since they make assumptions about BB layout. 2017-07-14 10:00:25 +00:00