[PATCH] D25913: [InstCombine] Fold nuw left-shifts in `ugt`/`ule` comparisons.
Eli Friedman via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 1 10:14:32 PDT 2016
efriedma accepted this revision.
efriedma added a comment.
This revision is now accepted and ready to land.
Just one minor comment.
================
Comment at: lib/Transforms/InstCombine/InstCombineCompares.cpp:1960
+ if (X->getType()->isVectorTy())
+ CTy = VectorType::get(CTy, X->getType()->getVectorNumElements());
+ // Derivation for the ult case:
----------------
Isn't CTy always equal to "X->getType()"?
Repository:
rL LLVM
https://reviews.llvm.org/D25913
More information about the llvm-commits
mailing list