llvm-project
4ab698df - [GlobalISel] Ignore debug uses in direct single-use combines (#237643)

Commit
1 day ago
[GlobalISel] Ignore debug uses in direct single-use combines (#237643) Debug uses can block the lshr/trunc and insert-vector chain combines in `CombinerHelper`, making ordinary Machine IR depend on debug information. This patch counts only non-debug uses and uses a non-debug iterator when retrieving the insert-vector user. The regression tests cover both combines and fail without the change. These direct `MRI.hasOneUse()` checks are not covered by #237070, which changes the `m_OneUse` matcher. This issue was found through a source audit. AI assisted with the analysis and development of the fix.
Author
Parents
Loading