When doing some recent debugging of the IROutliner, and using the similarity pass for debugging, just having the basic block and function isn't really enough to get all the information. This adds the first and last instruction to the output of the IRSimilarityPrinting pass to give better information to a user. Reviewer: paquette Differential Revision: https://reviews.llvm.org/D94304
13 lines
368 B
LLVM
13 lines
368 B
LLVM
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
|
|
; 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
|
|
}
|