We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 51827a6 commit ed642aaCopy full SHA for ed642aa
llvm/lib/Target/AMDGPU/SIFoldOperands.cpp
@@ -1430,12 +1430,7 @@ bool SIFoldOperandsImpl::tryFoldCndMask(MachineInstr &MI) const {
1430
if (!PredI || !PredI->isCompare())
1431
return false;
1432
1433
- unsigned CmpOpc = PredI->getOpcode();
1434
-
1435
- // Check if the comparison instruction is one of the expected ones.
1436
- const auto *CmpOpcI = find_if(
1437
- CmpOpcodes, [CmpOpc](unsigned Opcode) { return Opcode == CmpOpc; });
1438
- if (CmpOpcI == CmpOpcodes.end())
+ if (!is_contained(CmpOpcodes, PredI->getOpcode()))
1439
1440
1441
// Check if the immediate value of the source operand matches the immediate
0 commit comments