[PATCH] D118317: [InstCombine] Fold and-reduce idiom

Simon Pilgrim via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 27 05:30:22 PST 2022


RKSimon added inline comments.


================
Comment at: llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp:5910
+  if (!DL.isLegalInteger(NumBits))
+    return nullptr;
+
----------------
Why not just use NumBits < getMinVectorRegisterBitWidth()  ?


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D118317/new/

https://reviews.llvm.org/D118317



More information about the llvm-commits mailing list