[llvm] [AMDGPU] Prevent cyclic behaviour in SIFoldOperands (PR #82099)
via llvm-commits
llvm-commits at lists.llvm.org
Sat Feb 17 17:41:00 PST 2024
================
@@ -772,7 +773,7 @@ void SIFoldOperands::foldOperand(
if (UseMI->isRegSequence()) {
Register RegSeqDstReg = UseMI->getOperand(0).getReg();
unsigned RegSeqDstSubReg = UseMI->getOperand(UseOpIdx + 1).getImm();
-
+ static std::unordered_set<MachineInstr *> seenMI;
----------------
choikwa wrote:
not sure if function static var is better here or removing const qualifiers from several member functions
https://github.com/llvm/llvm-project/pull/82099
More information about the llvm-commits
mailing list