[libc-commits] [llvm] [clang] [flang] [lldb] [libcxxabi] [libc] [libcxx] [libclc] [lld] [compiler-rt] [clang-tools-extra] [VPlan] Add new VPUniformPerUFRecipe, use for step truncation. (PR #78113)

via libc-commits libc-commits at lists.llvm.org
Wed Jan 24 15:08:55 PST 2024


================
@@ -1469,6 +1461,52 @@ void VPReplicateRecipe::print(raw_ostream &O, const Twine &Indent,
 }
 #endif
 
+static bool isUniformAcrossVFsAndUFs(VPScalarCastRecipe *C) {
+  return C->isDefinedOutsideVectorRegions() ||
+         isa<VPDerivedIVRecipe>(C->getOperand(0)) ||
+         isa<VPCanonicalIVPHIRecipe>(C->getOperand(0));
+}
+
+Value *VPScalarCastRecipe ::generate(VPTransformState &State, unsigned Part) {
+  assert(vputils::onlyFirstLaneUsed(this) &&
+         "Codegen only implemented for first lane.");
+  switch (Opcode) {
+  case Instruction::SExt:
+  case Instruction::ZExt:
----------------
ayalz wrote:

Only Trunc is currently being used, still.

https://github.com/llvm/llvm-project/pull/78113


More information about the libc-commits mailing list