Skip to content

Commit b0025b6

Browse files
committed
IROutliner: Fixme relies on constant use lists
1 parent aedd9ec commit b0025b6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

llvm/lib/Transforms/IPO/IROutliner.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1947,6 +1947,7 @@ void replaceConstants(OutlinableRegion &Region) {
19471947
LLVM_DEBUG(dbgs() << "Replacing uses of constant " << *CST
19481948
<< " in function " << *OutlinedFunction << " with "
19491949
<< *Arg << "\n");
1950+
// FIXME: This is actually relying on the constant use list
19501951
CST->replaceUsesWithIf(Arg, [OutlinedFunction](Use &U) {
19511952
if (Instruction *I = dyn_cast<Instruction>(U.getUser()))
19521953
return I->getFunction() == OutlinedFunction;

0 commit comments

Comments
 (0)