summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorDuncan Sands <baldrick@free.fr>2012-02-05 18:25:50 +0000
committerDuncan Sands <baldrick@free.fr>2012-02-05 18:25:50 +0000
commit4b613497f06e6d1c737aeb161dc7e418562c7e9c (patch)
tree358f594f17b4c70523f2f3bfef330cb3d2d3d2be /clang/lib/Frontend/CompilerInvocation.cpp
parent268903955c7a17fcc47c920352a3de4a3129d879 (diff)
downloadbcm5719-llvm-4b613497f06e6d1c737aeb161dc7e418562c7e9c.tar.gz
bcm5719-llvm-4b613497f06e6d1c737aeb161dc7e418562c7e9c.zip
Reduce the number of dom queries made by GVN's conditional propagation
logic by half: isOnlyReachableViaThisEdge was trying to be clever and handle the case of a branch to a basic block which is contained in a loop. This costs a domtree lookup and is completely useless due to GVN's position in the pass pipeline: all loops have preheaders at this point, which means it is enough for isOnlyReachableViaThisEdge to check that Dst has only one predecessor. (I checked this theoretical argument by running over the entire nightly testsuite, and indeed it is so!). llvm-svn: 149838
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud