Go to file
Daniel Berlin fe4e7d0c94 Update update_test_checks to work properly with phi nodes and other fun things.
Summary:
Prior to this change, phi nodes were never considered defs, and so we ended up with undefined variables for any loop.  Now, instead of trying to find just defs, we iterate over each actual IR value in the line, and replace them one by one with either a definition or a use.

We also don't try to match anything in the comment portions of the line.

I've tested it even on things like function pointer calls, etc, and against existing test cases uses update_test_checks
With this change, we are able to use update_tests on the cyclic cases in newgvn.

The only case i'm aware of that will misfire is if you have a string with which contains a valid token.
However, this is the same as it is now, with a slightly larger set of strings that may misfire.
Prior to this change, a test with the string " %a =" would be replaced.

Reviewers: spatel, chandlerc

Subscribers: llvm-commits

Differential Revision: https://reviews.llvm.org/D28384

llvm-svn: 291357
2017-01-07 19:04:59 +00:00
clang PR20090: Add (passing) test from this bug; it's been fixed for a while. 2017-01-07 00:52:10 +00:00
clang-tools-extra Reapply "Fix for shared_ptrification in Clang" 2017-01-06 19:49:09 +00:00
compiler-rt tsan: Introducing a function to flush the shadow memory from third-party libraries 2017-01-07 11:27:33 +00:00
debuginfo-tests New round of fixes for "Always compile debuginfo-tests for the host triple" 2014-10-18 23:47:59 +00:00
libclc Fix build since r286752. 2016-11-14 16:06:33 +00:00
libcxx Replace identifiers called `__out` because Windows.h #defines it. 2017-01-07 11:27:06 +00:00
libcxxabi tweak definition to avoid GCC warning 2017-01-04 05:45:24 +00:00
libunwind EHABI: mark some functions as exported 2016-11-17 23:53:35 +00:00
lld Attempt to fix windows buildbot 2017-01-07 15:44:27 +00:00
lldb Fix dereferencing of pointers to empty classes 2017-01-07 16:39:07 +00:00
llgo [llgo] Remove support for LLVM attributes 2016-12-06 19:22:04 +00:00
llvm Update update_test_checks to work properly with phi nodes and other fun things. 2017-01-07 19:04:59 +00:00
openmp [CMake] Make openmp build under runtimes/ 2017-01-04 18:11:37 +00:00
parallel-libs [Axccel] Remove -Wno-missing-braces in build 2016-12-19 21:34:07 +00:00
polly Fix some typos in comments 2017-01-06 17:30:34 +00:00