llvm-project
2ce491c6 - [Hexagon] Don't packetize a slot-0-only store with a later aliasing store (#246713)

Commit
18 hours ago
[Hexagon] Don't packetize a slot-0-only store with a later aliasing store (#246713) When two stores in a packet write to the same location, the one in slot 0 takes effect last. The shuffler keeps program order by putting the first store in slot 1, but it cannot when the first store can only go in slot 0, such as an HVX vmem. The packetizer allowed any store followed by a store, so the HVX store then overwrote the later store. This miscompiles a variable-index insert element into a vector on the stack: the vector spill and the element store land in one packet, and the inserted element is lost. Fixes #246036. _AI Usage: Claude Code_ --------- Co-authored-by: soumikiith <cs21resch11004@iith.ac.in> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Author
Parents
Loading