[clang] [llvm] [clang-tools-extra] [VPlan] Add new VPUniformPerUFRecipe, use for step truncation. (PR #78113)

via cfe-commits cfe-commits at lists.llvm.org
Sun Jan 21 23:04:34 PST 2024


================
@@ -1469,6 +1465,47 @@ void VPReplicateRecipe::print(raw_ostream &O, const Twine &Indent,
 }
 #endif
 
+Value *VPScalarCastRecipe ::generate(VPTransformState &State, unsigned Part) {
+  assert(vputils::onlyFirstLaneUsed(this) &&
+         "Codegen only implemented for first lane only.");
----------------
ayalz wrote:

Can simplify into an assert that the Opcode is SExt, ZExt or Trunc.

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


More information about the cfe-commits mailing list