summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/Hexagon/HexagonGenPredicate.cpp
diff options
context:
space:
mode:
authorTim Northover <tnorthover@apple.com>2015-07-14 21:03:18 +0000
committerTim Northover <tnorthover@apple.com>2015-07-14 21:03:18 +0000
commitd5fdef016d0d957d8712b07e9e5828b9dae5c944 (patch)
treec85eb355ff9cadeb617ed19c532d373dcd347af5 /llvm/lib/Target/Hexagon/HexagonGenPredicate.cpp
parentd30e2eefc3cf8dfd2210aefd62f13a6e7c011b43 (diff)
downloadbcm5719-llvm-d5fdef016d0d957d8712b07e9e5828b9dae5c944.tar.gz
bcm5719-llvm-d5fdef016d0d957d8712b07e9e5828b9dae5c944.zip
GVN: tolerate an instruction being replaced without existing in the leaderboard
Sometimes an incidentally created instruction can duplicate a Value used elsewhere. It then often doesn't end up in the leader table. If it's later removed, we attempt to remove it from the leader table and segfault. Instead we should just ignore the removal request, which won't cause any problems. The reverse situation, where the original instruction is replaced by the new one (which you might think could leave the leader table empty) cannot occur, because the incidental instruction will never be found in the first place. llvm-svn: 242199
Diffstat (limited to 'llvm/lib/Target/Hexagon/HexagonGenPredicate.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud