aboutsummaryrefslogtreecommitdiff
path: root/llvm/tools/llvm-diff/DifferenceEngine.cpp
AgeCommit message (Collapse)AuthorFilesLines
2011-11-08Fix the printing of constants. Patch by Stepan Dyatkovskiy!John McCall1-1/+1
llvm-svn: 144079
2011-08-12Silence a bunch (but not all) "variable written but not read" warningsDuncan Sands1-2/+2
when building with assertions disabled. llvm-svn: 137460
2011-04-15Fix a ton of comment typos found by codespell. Patch byChris Lattner1-1/+1
Luis Felipe Strano Moraes! llvm-svn: 129558
2011-04-11Don't include Operator.h from InstrTypes.h.Jay Foad1-0/+1
llvm-svn: 129271
2011-03-14This patch is a big refactoring of llvm-diff. It doesn't add new features, ↵Renato Golin1-12/+12
but it re-organizes the old features, so I can insert the MetadataEngine to use the same infrastructure. llvm-svn: 127627
2010-08-24Check in a couple of changes that I apparently never committed:John McCall1-0/+33
- teach DifferenceEngine to unify successors of calls and invokes in certain circumstances - basic blocks actually don't have their own numbering; did that change? - add llvm-diff to the Makefile and CMake build systems llvm-svn: 111909
2010-07-29Make the header self-contained and follow #include guidelines.John McCall1-19/+17
llvm-svn: 109774
2010-07-29Centralize the logic to permanently unify two instructions and make sureJohn McCall1-20/+30
it establishes a context and does a complaining diff. Also make sure we unify the prelude and postlude of a diff after a block-diff call. llvm-svn: 109744
2010-07-29Diagnose non-structural differences in the case where blocks wereJohn McCall1-5/+16
structurally identical. llvm-svn: 109743
2010-07-29When unifying instructions during a block diff, actually complain aboutJohn McCall1-1/+1
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
2010-07-29Somehow I was getting reasonable results for the test cases I was interestedJohn McCall1-14/+38
in despite not ever incrementing any path costs, so that the only nonzero costs arose from the all-left path in the first column. Anyway. Perform the diff starting from the beginning of the block to avoid capturing (say) loads of allocas. Vastly improves diff results on code that hasn't been mem2reg'ed. llvm-svn: 109741
2010-07-29Cache the result of errs() and implement formatted logging.John McCall1-8/+8
llvm-svn: 109740
2010-07-29Add the llvm-diff tool, which performs a relatively naive structuralJohn McCall1-0/+600
diff of a function. There's a lot of cruft in the current version, and it's pretty far from perfect, but it's usable. Currently only capable of comparing functions. Currently ignores metadata. Currently ignores most attributes of functions and instructions. Patches welcome. llvm-svn: 109739