Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[mlir][arith] Assert preconditions in
BitcastOp::fold
. (llvm#100743)
This PR adds an assertion to `BitcastOp::fold` that fails if that function is called on invalid IR. That can happen when patterns, passes, etc. create (invalid) IR using builders and folding is triggered on that IR before verification, for example, through `OpBuilder::createOrFold`. The new assert triggers earlier than previously in order to help getting to the root cause faster. Signed-off-by: Ingo Müller <ingomueller@google.com>
- Loading branch information