[llvm] [SLP]Enable float point math ops as copyables elements. (PR #169857)

Simon Pilgrim via llvm-commits llvm-commits at lists.llvm.org
Wed Dec 3 08:39:27 PST 2025


================
@@ -10865,7 +10862,9 @@ class InstructionsCompatibilityAnalysis {
            Opcode == Instruction::LShr || Opcode == Instruction::Shl ||
            Opcode == Instruction::SDiv || Opcode == Instruction::UDiv ||
            Opcode == Instruction::And || Opcode == Instruction::Or ||
-           Opcode == Instruction::Xor;
+           Opcode == Instruction::Xor || Opcode == Instruction::FAdd ||
+           Opcode == Instruction::FSub || Opcode == Instruction::FMul ||
+           Opcode == Instruction::FDiv;
----------------
RKSimon wrote:

Instruction::FRem?

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


More information about the llvm-commits mailing list