llvm-project
ad7a6b37 - [SLP] Fix incorrect operand info for select in getCmpSelInstrCost (#188506)

Commit
27 days ago
[SLP] Fix incorrect operand info for select in getCmpSelInstrCost (#188506) The operand info passed to getCmpSelInstrCost for Select instructions was using operands 0 and 1 (condition and true value), but the API expects info about the data operands (true and false values). For selects, the data operands are at indices 1 and 2, not 0 and 1. This led to the cost model receiving the condition's operand info instead of the false arm's, potentially producing inaccurate cost estimates.
Author
Parents
Loading