20 lines · plain
1; Ensure that the value of the structural hash is consistent across runs to2; check that we aren't doing something like hashing a pointer that could3; introduce non-determinism.4 5; RUN: opt -passes='print<structural-hash><detailed>' -disable-output %s &> %t.16; RUN: opt -passes='print<structural-hash><detailed>' -disable-output %s &> %t.27; RUN: diff %t.1 %t.28 9; Check that we get valid output in the detailed case.10 11; cat %t.1 | FileCheck %s12 13define i64 @f1(i64 %a) {14 ret i64 %a15}16 17; CHECK: Module Hash: {{([a-z0-9]{14,})}}18; CHECK: Function f1 Hash: {{([a-z0-9]{14,})}}19 20