[PATCH] D79100: [LV][TTI] Emit new IR intrinsic llvm.get.active.mask

Vineet Kumar via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon May 18 16:18:14 PDT 2020


vkmr added inline comments.


================
Comment at: llvm/lib/Transforms/Vectorize/VPlan.cpp:424-439
   switch (getOpcode()) {
   case VPInstruction::Not:
     O << "not";
     break;
   case VPInstruction::ICmpULE:
     O << "icmp ule";
     break;
----------------
Add `case VPInstruction::ActiveMask` to print the correct VPInstruction when printing VPLan. You can pass the flag `-debug-only=loop-vectorize` to `opt` to see the generated VPlan. 


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

https://reviews.llvm.org/D79100





More information about the llvm-commits mailing list