This is UB, but we shouldn't crash the compiler either.
Fixes #61056
Paths
| Differential D144978
Fix SimplifyAllocConst pattern when we have alloc of negative sizes ClosedPublic Authored by mehdi_amini on Feb 28 2023, 9:10 AM.
Details Summary This is UB, but we shouldn't crash the compiler either. Fixes #61056
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Feb 28 2023, 11:29 AM This revision was landed with ongoing or failed builds.Feb 28 2023, 12:02 PM Closed by commit rGf35ac8a4ffbe: Fix SimplifyAllocConst pattern when we have alloc of negative sizes (authored by mehdi_amini). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 501251 mlir/lib/Dialect/MemRef/IR/MemRefOps.cpp
mlir/test/Dialect/MemRef/canonicalize.mlir
|