llvm-project
e5e3fdb2 - [GlobalISel] Fix propagation of MMO pointer in combine_extracted_vector_load (#234751)

Commit
2 days ago
[GlobalISel] Fix propagation of MMO pointer in combine_extracted_vector_load (#234751) `matchCombineExtractedVectorLoad()` previously looked up whether the vector being extracted is a constant instead of the actual index of the element (a trivial bug). This caused the pointer value to be dropped from `MachinePointerInfo` in the `G_LOAD` MMO even though the element being accessed is a compile-time constant index. As a result, quite a few optimisation opportunities were being missed in later stages of the AMDGPU backend. LLM disclaimer: 1. The changes and tests related to AMDGPU codegen were assisted by Codex GPT-6.1 Sol. 2. I wrote everything else manually, including this PR description.
Parents
Loading