[PATCH] D25910: [VectorLegalizer] Expansion of CTLZ using CTPOP when possible

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 28 21:59:34 PDT 2016


craig.topper added inline comments.


================
Comment at: lib/CodeGen/SelectionDAG/LegalizeVectorOps.cpp:1071
   // If the non-ZERO_UNDEF version is supported we can use that instead.
   unsigned Opc = Op.getOpcode() == ISD::CTLZ_ZERO_UNDEF ? ISD::CTLZ : ISD::CTTZ;
   if (TLI.isOperationLegalOrCustom(Opc, Op.getValueType())) {
----------------
Isn't this ternary operator unneeded now?


Repository:
  rL LLVM

https://reviews.llvm.org/D25910





More information about the llvm-commits mailing list