[PATCH] D87197: [InstSimplify] Fold degenerate abs of abs form

Eli Friedman via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Sep 5 14:45:56 PDT 2020


efriedma added a comment.

It doesn't matter that the constant is 0 specifically, does it?  Should work for any constant besides INT_MIN with the correct sign.

Is it worth trying to generalize this?  It seems like something along the lines of SimplifyWithOpReplaced should be able to simplify this.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D87197/new/

https://reviews.llvm.org/D87197



More information about the llvm-commits mailing list