summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/PrettyStackTrace.cpp
diff options
context:
space:
mode:
authorTobias Grosser <tobias@grosser.es>2014-04-01 16:01:33 +0000
committerTobias Grosser <tobias@grosser.es>2014-04-01 16:01:33 +0000
commit64b95123efa39a3a6fb6bdb0fe387ab28d4fe531 (patch)
tree9186e672ec0deb9f36dbb1c7a7b7e1acda90f1ff /llvm/lib/Support/PrettyStackTrace.cpp
parent48e24c7355d4cf3fccea59d3542c9e91830d39ac (diff)
downloadbcm5719-llvm-64b95123efa39a3a6fb6bdb0fe387ab28d4fe531.tar.gz
bcm5719-llvm-64b95123efa39a3a6fb6bdb0fe387ab28d4fe531.zip
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
Diffstat (limited to 'llvm/lib/Support/PrettyStackTrace.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud