The pass was not checking for uninitialized states due to dead code.
This patch also makes LLVMFuncOp correctly return a null body when it is
external.
Fixes #58807
Depends on D139388
Paths
| Differential D139389
[mlir] UnsignedWhenEquivalent ignore dead code ClosedPublic Authored by Mogball on Dec 5 2022, 8:03 PM.
Details Summary The pass was not checking for uninitialized states due to dead code. Fixes #58807 Depends on D139388
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Dec 5 2022, 8:04 PM This revision was landed with ongoing or failed builds.Dec 5 2022, 8:38 PM Closed by commit rG34535801d609: [mlir] UnsignedWhenEquivalent ignore dead code (authored by Mogball). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 480324 mlir/include/mlir/Dialect/LLVMIR/LLVMOps.td
mlir/lib/Dialect/Arith/Transforms/UnsignedWhenEquivalent.cpp
mlir/lib/Dialect/LLVMIR/IR/LLVMDialect.cpp
mlir/test/Dialect/Arith/unsigned-when-equivalent.mlir
mlir/test/Dialect/LLVMIR/callgraph.mlir
|