summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/MachineBlockPlacement.cpp
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2012-04-08 14:36:56 +0000
committerChandler Carruth <chandlerc@gmail.com>2012-04-08 14:36:56 +0000
commitf82b0e2d293e5521d154e54ebb7face21e5c367a (patch)
tree6dfd3a088e41a78a6d50e0ef99f243093ed9c1e6 /llvm/lib/CodeGen/MachineBlockPlacement.cpp
parent82609df64774c9738d231384efd293d9b87a02e1 (diff)
downloadbcm5719-llvm-f82b0e2d293e5521d154e54ebb7face21e5c367a.tar.gz
bcm5719-llvm-f82b0e2d293e5521d154e54ebb7face21e5c367a.zip
Teach InstCombine to nuke a common alloca pattern -- an alloca which has
GEPs, bit casts, and stores reaching it but no other instructions. These often show up during the iterative processing of the inliner, SROA, and DCE. Once we hit this point, we can completely remove the alloca. These were actually showing up in the final, fully optimized code in a bunch of inliner tests I've been working on, and notably they show up after LLVM finishes optimizing away all function calls involved in hash_combine(a, b). llvm-svn: 154285
Diffstat (limited to 'llvm/lib/CodeGen/MachineBlockPlacement.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud