aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-12-13 01:57:34 +0000
committerChris Lattner <sabre@nondot.org>2010-12-13 01:57:34 +0000
commitcd4b709d73f8705571d5680d5d7c1962a1239fda (patch)
tree751665013a2aa419d36c419be7ef3ba0c66aeb2e /lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp
parent9a2b72acc9651be04c12ba713702ddc5d449ce72 (diff)
move the "br (X == 0 | X == 1), T, F" -> switch optimization to a new
location in simplifycfg. In the old days, SimplifyCFG was never run on the entry block, so we had to scan over all preds of the BB passed into simplifycfg to do this xform, now we can just check blocks ending with a condbranch. This avoids a scan over all preds of every simplified block, which should be a significant compile-time perf win on functions with lots of edges. No functionality change. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121668 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp')
0 files changed, 0 insertions, 0 deletions