Fabian Mora f5b73760e1
[mlir][MemRef] Add UB as a dependent dialect and use ub.poison for Mem2Reg (#168066)
This patch adds `ub` as a dependent dialect to `memref`, and uses
`ub.poison` as the default value in `AllocaOp::getDefaultValue` for the
mem2reg pass.

This aligns the behavior of `mem2reg` with LLVM, where loading a value
before having a value should be poison.

---------

Signed-off-by: Fabian Mora <fabian.mora-cordero@amd.com>
2025-11-15 20:46:20 +00:00
..