[X86] Fix a few recursivelyDeleteUnusedNodes calls that were trying to delete nodes...
authorCraig Topper <craig.topper@gmail.com>
Tue, 2 Jun 2020 04:53:19 +0000 (21:53 -0700)
committerCraig Topper <craig.topper@gmail.com>
Tue, 2 Jun 2020 04:55:13 +0000 (21:55 -0700)
commite51d5bc7a4fc967c8a99a75cfa9480eb6b3a4fae
treec4e64b32280ce73765753180b04ad0bc7d4d9a86
parent3bb0d95fdc2fffd193d39d14f2ef421d4b468617
[X86] Fix a few recursivelyDeleteUnusedNodes calls that were trying to delete nodes before their user was really gone.

We looked through a truncate to get to the load. So we should be
deleting the truncate first.

There is a check that the node is really unused before deleting
so this didn't cause a functional issue.
llvm/lib/Target/X86/X86ISelLowering.cpp