[Attributor][FIX] Collapse `undef` to a proper value
authorJohannes Doerfert <johannes@jdoerfert.de>
Sat, 15 Feb 2020 02:08:20 +0000 (20:08 -0600)
committerJohannes Doerfert <johannes@jdoerfert.de>
Sat, 15 Feb 2020 03:44:46 +0000 (21:44 -0600)
commitb53af0e7f952feb0a54eff2ef9c9e38e62620a4b
tree65eeb1e7ffa0ba61e8904080fcb04ea97ef8a04c
parent137c99a6a5cd419086824035c1498baddbd46962
[Attributor][FIX] Collapse `undef` to a proper value

If we see an undef we cannot assume it's the same as "no value". For now
we just collapse it to 0.
llvm/lib/Transforms/IPO/Attributor.cpp
llvm/test/Transforms/Attributor/range.ll
llvm/test/Transforms/Attributor/undefined_behavior.ll