commit | 4d928e7dffb79938438de7b1264c338ae1a8d697 | [log] [tgz] |
---|---|---|
author | Duncan Sands <baldrick@free.fr> | Sun Mar 04 13:25:19 2012 +0000 |
committer | Duncan Sands <baldrick@free.fr> | Sun Mar 04 13:25:19 2012 +0000 |
tree | 1f2a93ffb7206e8ee643b1d2cd1da35497895175 | |
parent | 52b6ac2a781a938d85e366d7eb2c029240b08bb6 [diff] |
Nick pointed out on IRC that GVN's propagateEquality wasn't propagating equalities into phi node operands for which the equality is known to hold in the incoming basic block. That's because replaceAllDominatedUsesWith wasn't handling phi nodes correctly in general (that this didn't give wrong results was just luck: the specific way GVN uses replaceAllDominatedUsesWith precluded wrong changes to phi nodes). llvm-svn: 152006