mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-06 04:31:08 +00:00
Don't put integer pointers (longs) into the scalar map.
This speeds stuff up by 10% on some tests, woot! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5564 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
96768ea1ca
commit
1a1a85d514
@ -143,6 +143,16 @@ DSGraph::DSGraph(Function &F, DSGraph *GG) : Func(&F), GlobalsGraph(GG) {
|
|||||||
#ifndef NDEBUG
|
#ifndef NDEBUG
|
||||||
Timer::addPeakMemoryMeasurement();
|
Timer::addPeakMemoryMeasurement();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
// Remove all integral constants from the scalarmap!
|
||||||
|
for (hash_map<Value*, DSNodeHandle>::iterator I = ScalarMap.begin();
|
||||||
|
I != ScalarMap.end();)
|
||||||
|
if (isa<ConstantIntegral>(I->first)) {
|
||||||
|
hash_map<Value*, DSNodeHandle>::iterator J = I++;
|
||||||
|
ScalarMap.erase(J);
|
||||||
|
} else
|
||||||
|
++I;
|
||||||
|
|
||||||
markIncompleteNodes(DSGraph::MarkFormalArgs);
|
markIncompleteNodes(DSGraph::MarkFormalArgs);
|
||||||
|
|
||||||
// Remove any nodes made dead due to merging...
|
// Remove any nodes made dead due to merging...
|
||||||
|
Loading…
Reference in New Issue
Block a user