llvm-project
d6e25c4d - [SelectionDAG] Take passthru into account when widening ISD::MLOAD (#144170)

Commit
145 days ago
[SelectionDAG] Take passthru into account when widening ISD::MLOAD (#144170) #140595 used vp.load in the cases where we need to widen masked.load. However, we didn't account for the passthru operand so it might miscompile when the passthru is not undef. While we can simply avoid using vp.load to widen when passthru is not undef, doing so will ran into the exact same crash described in #140198 , so for scalable vector, this patch manually merges the vp.load result with passthru when the latter is not undef.
Author
Parents
Loading