HomePhabricator

[InstSimplify] Fold call null/undef to poison

Authored by nikic on Sun, Jan 3, 1:08 PM.

Description

[InstSimplify] Fold call null/undef to poison

Calling null or undef results in immediate undefined behavior.
Return poison instead of undef in this case, similar to what
we do for immediate UB due to division by zero.

Details

Committed
nikicWed, Jan 6, 12:09 PM
Parents
rG7d48eff8ba17: [PowerPC] Avoid call to undef in test (NFC)
Branches
Unknown
Tags
Unknown