[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:44:05 PDT 2018


craig.topper added a comment.

I think the fact that we're pretty register constrained is hurting my attempt at promoting to 32 bit. We only had 8 32-bit registers to start with. We lost one to the load pointer, one to the store pointer, one to the loop index, one to the stack pointer. One seems to be used by a loop around this one. So that left us 3 registers inside this loop to do the math with.


Repository:
  rL LLVM

https://reviews.llvm.org/D52177





More information about the llvm-commits mailing list