mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-01 05:01:59 +01:00
c432043c07
This introduces an analysis pass that wraps IRSimilarityIdentifier, and adds a printer pass to examine in what function similarities are being found. Test for what the printer pass can find are in test/Analysis/IRSimilarityIdentifier. Reviewed by: paquette, jroelofs Differential Revision: https://reviews.llvm.org/D86973
12 lines
294 B
LLVM
12 lines
294 B
LLVM
; RUN: opt -disable-output -S -passes=print-ir-similarity < %s 2>&1 | FileCheck --allow-empty %s
|
|
|
|
; This is a simple test to make sure the IRSimilarityPrinterPass returns
|
|
; nothing when there is nothing to analyze.
|
|
|
|
; CHECK-NOT: Found in
|
|
|
|
define linkonce_odr void @fish() {
|
|
entry:
|
|
ret void
|
|
}
|