[PATCH] D25913: [InstCombine] Fold nuw left-shifts in `ugt`/`ule` comparisons.
Sanjay Patel via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 25 13:38:17 PDT 2016
spatel added a comment.
In https://reviews.llvm.org/D25913#578829, @bryant wrote:
> Rebase onto https://reviews.llvm.org/D25955.
Thanks for the preliminary patches.
As you can see from the current trunk transforms, we always canonicalize the compare predicates to ugt/ult. Unless you see a case where that doesn't happen, I think you can adjust this patch to only fire when we have ugt/ult rather than ugt/ule and remove the "pre-transform" step.
Repository:
rL LLVM
https://reviews.llvm.org/D25913
More information about the llvm-commits
mailing list