llvm/test/Transforms/GuardWidening
Sanjoy Das c17e533ca7 [GuardWidening] Fix incorrect use of remove_if
I had used `std::remove_if` under the assumption that it moves the
predicate matching elements to the end, but actaully the elements
remaining towards the end (after the iterator returned by
`std::remove_if`) are indeterminate.  Fix the bug (and make the code
more straightforward) by using a temporary SmallVector, and add a test
case demonstrating the issue.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@270306 91177308-0d34-0410-b5e6-96231b3b80d8
2016-05-21 02:24:44 +00:00
..
basic.ll
range-check-merging.ll [GuardWidening] Fix incorrect use of remove_if 2016-05-21 02:24:44 +00:00