[llvm-commits] [llvm] r109742 - /llvm/trunk/tools/llvm-diff/DifferenceEngine.cpp

John McCall rjmccall at apple.com
Thu Jul 29 01:59:28 PDT 2010


Author: rjmccall
Date: Thu Jul 29 03:59:27 2010
New Revision: 109742

URL: http://llvm.org/viewvc/llvm-project?rev=109742&view=rev
Log:
When unifying instructions during a block diff, actually complain about
any differences we see.  This should only happen if there are "non-structural"
differences between the instructions, i.e. differences which wouldn't cause
diff to return true.


Modified:
    llvm/trunk/tools/llvm-diff/DifferenceEngine.cpp

Modified: llvm/trunk/tools/llvm-diff/DifferenceEngine.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-diff/DifferenceEngine.cpp?rev=109742&r1=109741&r2=109742&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-diff/DifferenceEngine.cpp (original)
+++ llvm/trunk/tools/llvm-diff/DifferenceEngine.cpp Thu Jul 29 03:59:27 2010
@@ -549,7 +549,7 @@
       {
         Instruction *L = &*LI, *R = &*RI;
         DifferenceEngine::Context C(Engine, L, R);
-        diff(L, R, false, true); // unify successors
+        diff(L, R, true, true); // complain and unify successors
         Values[L] = R; // make non-tentative
         Diff.addMatch(L, R);
       }





More information about the llvm-commits mailing list