summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Utils/ValueMapper.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-11-18 07:31:42 +0000
committerChris Lattner <sabre@nondot.org>2005-11-18 07:31:42 +0000
commit3e9e8bd25c298f22df14c89d4e04e8484c31b959 (patch)
tree7abac28240624d9c0a8c139755762cb0fbaec1d1 /llvm/lib/Transforms/Utils/ValueMapper.cpp
parent31dc3827d36cfbeb08e9c8564818a21fe551dd82 (diff)
downloadbcm5719-llvm-3e9e8bd25c298f22df14c89d4e04e8484c31b959.tar.gz
bcm5719-llvm-3e9e8bd25c298f22df14c89d4e04e8484c31b959.zip
Implement a refinement to the mem2reg algorithm for cases where an alloca
has a single def. In this case, look for uses that are dominated by the def and attempt to rewrite them to directly use the stored value. This speeds up mem2reg on these values and reduces the number of phi nodes inserted. This should address PR665. llvm-svn: 24411
Diffstat (limited to 'llvm/lib/Transforms/Utils/ValueMapper.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud