commit | 3b205175ea417349ab96f3525d730e005e12c0f9 | [log] [tgz] |
---|---|---|
author | Dan Gohman <gohman@apple.com> | Thu Jan 05 23:58:56 2012 +0000 |
committer | Dan Gohman <gohman@apple.com> | Thu Jan 05 23:58:56 2012 +0000 |
tree | 33b98cf9ccedfefa32755014b961a9071908a033 | |
parent | fb54ad19e7ef1b4f7177a005332ca8aca9bdbcb1 [diff] |
Fix SpeculativelyExecuteBB to either speculate all or none of the phis present in the bottom of the CFG triangle, as the transformation isn't ever valuable if the branch can't be eliminated. Also, unify some heuristics between SimplifyCFG's multiple if-converters, for consistency. This fixes rdar://10627242. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147630 91177308-0d34-0410-b5e6-96231b3b80d8