Revert use of getUniqueUndroppableUser in AssumeBundleBuilder

Fix build bot failure in rG4ac4e521 caused due to assumeBundleBuilder
using new API (getUniqueUndroppableUser).
We now continue using the existing API for AssumeBundleBuilder
(getSingleUndroppableUser).

Sorry for the noise here.

Tests-Run: failing testcase passes.
This commit is contained in:
Anna Thomas 2021-09-15 17:43:46 -04:00
parent 87c00878d3
commit b6cb03e6b9
1 changed files with 2 additions and 3 deletions

View File

@ -161,9 +161,8 @@ struct AssumeBuilderState {
if (wouldInstructionBeTriviallyDead(Inst)) {
if (RK.WasOn->use_empty())
return false;
auto *UniqueUser =
RK.WasOn->getUniqueUndroppableUser();
if (UniqueUser == InstBeingModified)
Use *SingleUse = RK.WasOn->getSingleUndroppableUse();
if (SingleUse && SingleUse->getUser() == InstBeingModified)
return false;
}
return true;