We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 59edaae commit 34bf25aCopy full SHA for 34bf25a
llvm/lib/Transforms/IPO/IROutliner.cpp
@@ -1942,10 +1942,6 @@ void replaceConstants(OutlinableRegion &Region) {
1942
Argument *Arg = Group.OutlinedFunction->getArg(AggArgIdx);
1943
// Identify the argument it will be elevated to, and replace instances of
1944
// that constant in the function.
1945
-
1946
- // TODO: If in the future constants do not have one global value number,
1947
- // i.e. a constant 1 could be mapped to several values, this check will
1948
- // have to be more strict. It cannot be using only replaceUsesWithIf.
1949
VMap[CST] = Arg;
1950
LLVM_DEBUG(dbgs() << "Replacing uses of constant " << *CST
1951
<< " in function " << *OutlinedFunction << " with "
0 commit comments