[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 15:45:18 PDT 2020


vkmr marked an inline comment as done.
vkmr added inline comments.


================
Comment at: llvm/lib/Transforms/Vectorize/VPlan.cpp:389-392
+    Function *Decl = Intrinsic::getDeclaration(
+        BB->getParent()->getParent(), Intrinsic::get_active_mask,
+        { V->getType(), V->getType() });
+    Value *Call = Builder.CreateCall(Decl, { V });
----------------
Minor nit:

Probably cleaner to use `Builder.CreateIntrinsic(Intrinsic::get_active_mask, { V->getType(), V->getType() }, {V}, nullptr, "active.mask");`.


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

https://reviews.llvm.org/D79100





More information about the llvm-commits mailing list