llvm-project/polly/lib/Transform
Tobias Grosser 64b95123ef Delete trivial PHI nodes (aka stack slot sharing)
During code preperation trivial PHI nodes (mainly introduced by lcssa) are
deleted to decrease the number of introduced allocas (==> dependences). However
simply replacing them by their only incoming value would cause the independent
block pass to introduce new allocas. To prevent this we try to share stack slots
during code preperarion, hence to reuse a already created alloca 'to demote' the
trivial PHI node. This works if we know that the value stored in this alloca
will be the incoming value of the trivial PHI at the end of the predecessor
block of this trivial PHI.

Contributed-by: Johannes Doerfert <doerfert@cs.uni-saarland.de>
llvm-svn: 205320
2014-04-01 16:01:33 +00:00
..
Canonicalization.cpp
CodePreparation.cpp Delete trivial PHI nodes (aka stack slot sharing) 2014-04-01 16:01:33 +00:00
DeadCodeElimination.cpp clang-format: Remove empty lines 2014-03-21 14:04:25 +00:00
IndVarSimplify.cpp clang-format: Remove empty lines 2014-03-21 14:04:25 +00:00
IndependentBlocks.cpp
Pluto.cpp clang-format: Remove empty lines 2014-03-21 14:04:25 +00:00
Pocc.cpp
ScheduleOptimizer.cpp clang-format: Remove empty lines 2014-03-21 14:04:25 +00:00