abs should only produce a positive value or the signed minimum
value. This means we can't fold abs(undef) to undef as that would
allow more values. Fold to 0 instead to match InstSimplify.
Fixes test mentioned in comment on pr55271.
Differential D126174
[SelectionDAG] Fold abs(undef) to 0 instead of undef. craig.topper on May 22 2022, 12:41 PM. Authored by
Details abs should only produce a positive value or the signed minimum Fixes test mentioned in comment on pr55271.
Diff Detail
|