llvm/lib/Transforms
Dan Gohman 472fdf7090 Clear the SCEVExpander's insertion point after making deletions,
so that the SCEVExpander doesn't retain a dangling pointer as its
insert position. The dangling pointer in this case wasn't ever used
to insert new instructions, but it was causing trouble with
SCEVExpander's code for automatically advancing its insert position
past debug intrinsics.

This fixes use-after-free errors that valgrind noticed in
test/Transforms/IndVarSimplify/2007-06-06-DeleteDanglesPtr.ll and
test/Transforms/IndVarSimplify/exit_value_tests.ll.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@99036 91177308-0d34-0410-b5e6-96231b3b80d8
2010-03-20 03:53:53 +00:00
..
Hello Prune #includes. 2010-03-01 17:42:17 +00:00
InstCombine Factor checked library call optimization into a common helper class and use it 2010-03-12 09:27:41 +00:00
Instrumentation Uniformize the names of type predicates: rather than having isFloatTy and 2010-02-15 16:12:20 +00:00
IPO back out r98957, it broke http://smooshlab.apple.com:8010/builders/clang-x86_64-darwin10-fnt/builds/703 in the nightly test suite 2010-03-19 13:50:02 +00:00
Scalar Clear the SCEVExpander's insertion point after making deletions, 2010-03-20 03:53:53 +00:00
Utils back out r98957, it broke http://smooshlab.apple.com:8010/builders/clang-x86_64-darwin10-fnt/builds/703 in the nightly test suite 2010-03-19 13:50:02 +00:00
Makefile