llvm-project
04db60d1 - [AMDGPU] Prevent hang in SIFoldOperands by caching uses (#82099)

Commit
1 year ago
[AMDGPU] Prevent hang in SIFoldOperands by caching uses (#82099) foldOperands() for REG_SEQUENCE has recursion that can trigger an infinite loop as the method can modify the operand order, which messes up the range-based for loop. This patch fixes the issue by caching the uses for processing beforehand, and then iterating over the cache rather using the instruction iterator.
Author
Parents
Loading