forked from OSchip/llvm-project
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:
parent
87c00878d3
commit
b6cb03e6b9
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue