summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-diff/DifferenceEngine.cpp
diff options
context:
space:
mode:
authorJohn McCall <rjmccall@apple.com>2010-07-29 08:59:27 +0000
committerJohn McCall <rjmccall@apple.com>2010-07-29 08:59:27 +0000
commit0ed6b1326c9021edccc37ce69511990f81453ee6 (patch)
tree0d8e7a7953a22eb9e5bd587a4c0911ed9c7c278f /llvm/tools/llvm-diff/DifferenceEngine.cpp
parentd293c4e6e00ad7abfca00f19887569eac591eec6 (diff)
downloadbcm5719-llvm-0ed6b1326c9021edccc37ce69511990f81453ee6.tar.gz
bcm5719-llvm-0ed6b1326c9021edccc37ce69511990f81453ee6.zip
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. llvm-svn: 109742
Diffstat (limited to 'llvm/tools/llvm-diff/DifferenceEngine.cpp')
-rw-r--r--llvm/tools/llvm-diff/DifferenceEngine.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/tools/llvm-diff/DifferenceEngine.cpp b/llvm/tools/llvm-diff/DifferenceEngine.cpp
index 769dc0ac103..d9fbc57d2d7 100644
--- a/llvm/tools/llvm-diff/DifferenceEngine.cpp
+++ b/llvm/tools/llvm-diff/DifferenceEngine.cpp
@@ -549,7 +549,7 @@ void FunctionDifferenceEngine::runBlockDiff(BasicBlock::iterator LStart,
{
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);
}
OpenPOWER on IntegriCloud