[mlir:MultiOpDriver] Add operands to worklist should be checked
authorChia-hung Duan <chiahungduan@google.com>
Sat, 11 Jun 2022 15:56:21 +0000 (15:56 +0000)
committerChia-hung Duan <chiahungduan@google.com>
Sat, 11 Jun 2022 15:56:23 +0000 (15:56 +0000)
commitba3a9f51ffd903edf97b0cb7d97c073d907fee30
treedfa5ec8c3a71928cfcc4a136427e6d56b0db2b69
parentff80dc85449307d90e5276cd8f41825ace9b8594
[mlir:MultiOpDriver] Add operands to worklist should be checked

Operand's defining op may not be valid for adding to the worklist under
stict mode

Reviewed By: rriddle

Differential Revision: https://reviews.llvm.org/D127180
mlir/lib/Transforms/Utils/GreedyPatternRewriteDriver.cpp
mlir/test/Transforms/test-strict-pattern-driver.mlir [new file with mode: 0644]
mlir/test/lib/Dialect/Test/TestPatterns.cpp