summaryrefslogtreecommitdiffstats
path: root/clang/lib/Parse/ParseCXXInlineMethods.cpp
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2012-08-10 22:27:31 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2012-08-10 22:27:31 +0000
commitbc55bfde033d67329f9d5dd3ec5e1fbf665297ad (patch)
tree1820b0e5d27ab6c4fb288bbbc53bdba9f1ea58be /clang/lib/Parse/ParseCXXInlineMethods.cpp
parenta0042acd3be06dcc3267b61b9a4f6311299b39ca (diff)
downloadbcm5719-llvm-bc55bfde033d67329f9d5dd3ec5e1fbf665297ad.tar.gz
bcm5719-llvm-bc55bfde033d67329f9d5dd3ec5e1fbf665297ad.zip
Add a proper if-conversion cost model.
Detect when there is not enough available ILP, so if-conversion can't speculate instructions for free. Compute the lengthening of the critical path when inserting a select instruction that depends on the condition as well as both sides of the if. Reject conversions that would stretch the critical path by more than half a mispredict penalty. llvm-svn: 161713
Diffstat (limited to 'clang/lib/Parse/ParseCXXInlineMethods.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud