Skip to content

Commit 6ff167f

Browse files
committed
Rebase with rebase fixes
1 parent e011f66 commit 6ff167f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Target/AMDGPU/AMDGPUMCResourceInfo.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ const MCExpr *MCResourceInfo::flattenedCycleMax(MCSymbol *RecSym,
122122
// where <callee_symbol> will eventually recurse. If this condition holds,
123123
// the recursion occurs within some other (possibly unresolvable) MCExpr,
124124
// thus using the worst case value then.
125-
if (CurExpr->isSymbolUsedInExpression(RecSym)) {
125+
if (!AMDGPUMCExpr::isSymbolUsedInExpression(RecSym, CurExpr)) {
126126
LLVM_DEBUG(dbgs() << "MCResUse: " << RecSym->getName()
127127
<< ": Recursion in unexpected sub-expression, using "
128128
"module maximum\n");

0 commit comments

Comments
 (0)