summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/XCore
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2013-08-11 02:17:11 +0000
committerChandler Carruth <chandlerc@gmail.com>2013-08-11 02:17:11 +0000
commitd7cd7e367ef7c936ee292b4c437739e463a3d344 (patch)
tree3e34d2a6c28896c408fab6aeea0685d25cc9ba5f /llvm/lib/Target/XCore
parentc17283b407963b083ae4921565ccbb198bc115e4 (diff)
downloadbcm5719-llvm-d7cd7e367ef7c936ee292b4c437739e463a3d344.tar.gz
bcm5719-llvm-d7cd7e367ef7c936ee292b4c437739e463a3d344.zip
Re-instate r187323 which fast-tracks promotable allocas as soon as the
SROA-based analysis has enough information. This should work now that both mem2reg *and* the SSAUpdater-based AllocaPromoter have been updated to be able to promote the types of allocas that the SROA analysis detects. I've included tests for the AllocaPromoter that were only possible to write once we fast-tracked promotable allocas without rewriting them. This includes a test both for r187347 and r188145. Original commit log for r187323: """ Now that mem2reg understands how to cope with a slightly wider set of uses of an alloca, we can pre-compute promotability while analyzing an alloca for splitting in SROA. That lets us short-circuit the common case of a bunch of trivially promotable allocas. This cuts 20% to 30% off the run time of SROA for typical frontend-generated IR sequneces I'm seeing. It gets the new SROA to within 20% of ScalarRepl for such code. My current benchmark for these numbers is PR15412, but it fits the general pattern of IR emitted by Clang so it should be widely applicable. """ llvm-svn: 188146
Diffstat (limited to 'llvm/lib/Target/XCore')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud