[PATCH] D52177: [InstCombine] Fold ~A - Min/Max(~A, O) -> Max/Min(A, ~O) - A

Craig Topper via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 11 15:48:15 PDT 2018


craig.topper added a comment.

Theoretically if I could turn the subtracts into add(negate(RHS), LHS) then there should be less register pressure because the RHS of the subtract isn't used again so the negate can happen without copy and then we can put it on the LHS of an add and have no issue overwriting it.


Repository:
  rL LLVM

https://reviews.llvm.org/D52177





More information about the llvm-commits mailing list