[PATCH] D92095: [DAG] Legalize abs(x) -> smax(x,sub(0,x)) iff smax/sub are legal

Simon Pilgrim via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 25 05:59:27 PST 2020


RKSimon added a comment.

In D92095#2416168 <https://reviews.llvm.org/D92095#2416168>, @lebedev.ri wrote:

> Remind me, for `ISD::ABS`, what happens for `INT_MIN` input?
> https://alive2.llvm.org/ce/z/_KMTWi
> https://alive2.llvm.org/ce/z/p8CnZa



  /// ABS - Determine the unsigned absolute value of a signed integer value of
  /// the same bitwidth.
  /// Note: A value of INT_MIN will return INT_MIN, no saturation or overflow
  /// is performed.
  ABS,


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