summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/MachineRegionInfo.cpp
diff options
context:
space:
mode:
authorHans Wennborg <hans@hanshq.net>2014-12-06 01:28:50 +0000
committerHans Wennborg <hans@hanshq.net>2014-12-06 01:28:50 +0000
commit08de833c1cc559eb21a7ffd62224c78c5fc77e4f (patch)
treefee6db4ad1daf5054d809eb1139ee277f043c1d6 /llvm/lib/CodeGen/MachineRegionInfo.cpp
parent33df7cd345e926f63c02c29bcaa5826dea84f265 (diff)
downloadbcm5719-llvm-08de833c1cc559eb21a7ffd62224c78c5fc77e4f.tar.gz
bcm5719-llvm-08de833c1cc559eb21a7ffd62224c78c5fc77e4f.zip
SelectionDAG switch lowering: Replace unreachable default with most popular case.
This can significantly reduce the size of the switch, allowing for more efficient lowering. I also worked with the idea of exploiting unreachable defaults by omitting the range check for jump tables, but always ended up with a non-neglible binary size increase. It might be worth looking into some more. SimplifyCFG currently does this transformation, but I'm working towards changing that so we can optimize harder based on unreachable defaults. Differential Revision: http://reviews.llvm.org/D6510 llvm-svn: 223566
Diffstat (limited to 'llvm/lib/CodeGen/MachineRegionInfo.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud