Files
clang-p2996/mlir/test/Dialect/Arith
Markus Böck bbf0733030 [mlir][arith] Fold select with poison
If either of the operands of `select` is fully poisoned we can simply return the other.
This PR implements this optimization inside the `fold` method.

Note that this patch is the first to add a dependency on the UB dialect within Arith. Given this was inevitable (and part of the motivation) it should be fine I believe.

Differential Revision: https://reviews.llvm.org/D158986
2023-08-29 08:26:25 +02:00
..