summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test/python_api/frame/TestFrames.py
diff options
context:
space:
mode:
authorTim Shen <timshen91@gmail.com>2016-02-03 20:58:55 +0000
committerTim Shen <timshen91@gmail.com>2016-02-03 20:58:55 +0000
commitf99f0d5a7e65f27d1d0cc4daba684dc8c827b6bc (patch)
tree334a659a66adeffc494c51b72072c76b1baf5f28 /lldb/packages/Python/lldbsuite/test/python_api/frame/TestFrames.py
parent7b660e2604db6dbd816dcd8d22e71566574e7175 (diff)
downloadbcm5719-llvm-f99f0d5a7e65f27d1d0cc4daba684dc8c827b6bc.tar.gz
bcm5719-llvm-f99f0d5a7e65f27d1d0cc4daba684dc8c827b6bc.zip
[SelectionDAG] Fix CombineToPreIndexedLoadStore O(n^2) behavior
This patch consists of two parts: a performance fix in DAGCombiner.cpp and a correctness fix in SelectionDAG.cpp. The test case tests the bug that's uncovered by the performance fix, and fixed by the correctness fix. The performance fix keeps the containers required by the hasPredecessorHelper (which is a lazy DFS) and reuse them. Since hasPredecessorHelper is called in a loop, the overall efficiency reduced from O(n^2) to O(n), where n is the number of SDNodes. The correctness fix keeps iterating the neighbor list even if it's time to early return. It will return after finishing adding all neighbors to Worklist, so that no neighbors are discarded due to the original early return. llvm-svn: 259691
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/python_api/frame/TestFrames.py')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud