aboutsummaryrefslogtreecommitdiff
path: root/lib/Analysis/DataStructure/Printer.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-10-30 05:41:23 +0000
committerChris Lattner <sabre@nondot.org>2004-10-30 05:41:23 +0000
commit857eb0697f79d3a25d55876fa0d7f4481ff0be67 (patch)
tree2227c976384c0ae13330f221497863a9f35fdf01 /lib/Analysis/DataStructure/Printer.cpp
parent62c3a9505121f7d101e7ee496a32326e3630fbb3 (diff)
Fix three bugs:
1. Calls to external global VARIABLES should not be treated as a call to an external function 2. Efficiently deleting an element from a vector by using std::swap with the back, then pop_back is NOT a good way to keep the vector sorted. 3. Our hope of having stuff get deleted by making them redundant just won't work. In particular, if we have three calls in sequence that should be merged: A, B, C first we unify B into A. To be sure that they appeared identical (so B would be erased) we set B = A. On the next step, we unified C into A and set C = A. Unfortunately, this is no guarantee that C = B, so we would fail to delete the dead call. Switch to a more explicit scheme. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17357 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/DataStructure/Printer.cpp')
0 files changed, 0 insertions, 0 deletions