mirror of
https://github.com/RPCS3/llvm.git
synced 2025-02-26 21:56:11 +00:00
[DAGCombiner] Use SDNode::isOperandOf to simplify some code. NFCI
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@366778 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
2622ae5029
commit
bcf052f09c
@ -14829,13 +14829,7 @@ CheckForMaskedLoad(SDValue V, SDValue Ptr, SDValue Chain) {
|
||||
else if (Chain->getOpcode() == ISD::TokenFactor &&
|
||||
SDValue(LD, 1).hasOneUse()) {
|
||||
// LD has only 1 chain use so they are no indirect dependencies.
|
||||
bool isOk = false;
|
||||
for (const SDValue &ChainOp : Chain->op_values())
|
||||
if (ChainOp.getNode() == LD) {
|
||||
isOk = true;
|
||||
break;
|
||||
}
|
||||
if (!isOk)
|
||||
if (!LD->isOperandOf(Chain.getNode()))
|
||||
return Result;
|
||||
} else
|
||||
return Result; // Fail.
|
||||
|
Loading…
x
Reference in New Issue
Block a user