Skip to content

Commit

Permalink
script: Fix intrinsic matching
Browse files Browse the repository at this point in the history
  • Loading branch information
dtcxzyw committed Jul 25, 2024
1 parent 4abe28e commit c8b1853
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion daggrep.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ static bool matchInst(Instruction &I1, Instruction &I2,
if (auto *II1 = dyn_cast<IntrinsicInst>(&I1)) {
auto *II2 = cast<IntrinsicInst>(&I2);
for (uint32_t I = 0; I < II1->arg_size() - Skip; ++I) {
if (!matchValue(II1->getArgOperand(I), II1->getArgOperand(1), Map))
if (!matchValue(II1->getArgOperand(I), II2->getArgOperand(I), Map))
return false;
}
} else {
Expand Down

0 comments on commit c8b1853

Please sign in to comment.