commit | 5313da32638e64ec40668877b1b85f68455866e5 | [log] [tgz] |
---|---|---|
author | Michael Liao <michael.liao@intel.com> | Tue Dec 23 08:26:55 2014 +0000 |
committer | Michael Liao <michael.liao@intel.com> | Tue Dec 23 08:26:55 2014 +0000 |
tree | a68edc8eb0489f7debc6d76051303f6b04a572a4 | |
parent | 0bf33ffde408a846ef803c7e62544ccfd50b872d [diff] |
[SimplifyCFG] Revise common code sinking - Fix the case where more than 1 common instructions derived from the same operand cannot be sunk. When a pair of value has more than 1 derived values in both branches, only 1 derived value could be sunk. - Replace BB1 -> (BB2, PN) map with joint value map, i.e. map of (BB1, BB2) -> PN, which is more accurate to track common ops. llvm-svn: 224757