HomePhabricator

[InstSimplify] Fold division by zero to poison

Authored by nikic on Sun, Jan 3, 9:19 AM.

Description

[InstSimplify] Fold division by zero to poison

Div/rem by zero is immediate undefined behavior and anything goes.
Currently we fold it to undef, this patch changes it to fold to
poison instead, which is slightly stronger.

Differential Revision: https://reviews.llvm.org/D93995

Details

Committed
nikicSun, Jan 3, 11:52 AM
Differential Revision
D93995: [InstSimplify] Fold division by zero to poison
Parents
rGba82c0b3157b: [llvm] Call *(Set|Map)::erase directly (NFC)
Branches
Unknown
Tags
Unknown