[llvm] [VPlan] Use VPInstruction for uniform binops. (PR #141429)
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 10 07:12:51 PDT 2025
================
@@ -1049,15 +1050,17 @@ void VPInstruction::print(raw_ostream &O, const Twine &Indent,
void VPInstructionWithType::execute(VPTransformState &State) {
State.setDebugLocFrom(getDebugLoc());
- switch (getOpcode()) {
- case Instruction::ZExt:
- case Instruction::Trunc: {
+ if (Instruction::isCast(getOpcode())) {
----------------
fhahn wrote:
Yep, now we need to generate code for any cast
https://github.com/llvm/llvm-project/pull/141429
More information about the llvm-commits
mailing list