[PATCH] D92102: [DAG] Legalize abs(x) -> umin(x,sub(0,x)) iff umin/sub are legal
Simon Pilgrim via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 25 07:40:06 PST 2020
RKSimon created this revision.
RKSimon added reviewers: spatel, lebedev.ri.
Herald added subscribers: pengfei, hiraditya.
Herald added a project: LLVM.
RKSimon requested review of this revision.
If umin() is legal, this is likely to result in smaller codegen expansion for abs(x) than the xor(add,ashr) method.
Followup to D92095 <https://reviews.llvm.org/D92095>
rG LLVM Github Monorepo
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 4071 bytes
Desc: not available
More information about the llvm-commits