diff options
| author | George Burgess IV <george.burgess.iv@gmail.com> | 2016-08-03 01:22:19 +0000 |
|---|---|---|
| committer | George Burgess IV <george.burgess.iv@gmail.com> | 2016-08-03 01:22:19 +0000 |
| commit | 14633b5cd366f5c13c19de9a621f417e36b07440 (patch) | |
| tree | 9aa0ed19d4bb1c800328794c9e942286c2198553 /llvm/lib/LibDriver | |
| parent | 9f0ef011979a94fb435f697f7853d2804771af20 (diff) | |
| download | bcm5719-llvm-14633b5cd366f5c13c19de9a621f417e36b07440.tar.gz bcm5719-llvm-14633b5cd366f5c13c19de9a621f417e36b07440.zip | |
[MSSA] Fix a caching bug.
This fixes a bug where we'd sometimes cache overly-conservative results
with our walker. This bug was made more obvious by r277480, which makes
our cache far more spotty than it was. Test case is llvm-unit, because
we're likely going to use CachingWalker only for def optimization in the
future.
The bug stems from that there was a place where the walker assumed that
`DefNode.Last` was a valid target to cache to when failing to optimize
phis. This is sometimes incorrect if we have a cache hit. The fix is to
use the thing we *can* assume is a valid target to cache to. :)
llvm-svn: 277559
Diffstat (limited to 'llvm/lib/LibDriver')
0 files changed, 0 insertions, 0 deletions

