[PATCH] D92095: [DAG] Legalize abs(x) -> smax(x,sub(0,x)) iff smax/sub are legal
Roman Lebedev via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 25 06:00:05 PST 2020
lebedev.ri accepted this revision.
lebedev.ri added a comment.
This revision is now accepted and ready to land.
Actually, never mind. The current expansion is identically undef-unsafe, iff `ISD::ABS` is ever undef-producing/inducing:
https://alive2.llvm.org/ce/z/eJwDHC
https://alive2.llvm.org/ce/z/z6fGbG
So looks good to me.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D92095/new/
https://reviews.llvm.org/D92095
More information about the llvm-commits
mailing list