[llvm] r267305 - Fix test stability (was sensitive to the path)
Mehdi Amini via llvm-commits
llvm-commits at lists.llvm.org
Sat Apr 23 17:03:58 PDT 2016
Author: mehdi_amini
Date: Sat Apr 23 19:03:57 2016
New Revision: 267305
URL: http://llvm.org/viewvc/llvm-project?rev=267305&view=rev
Log:
Fix test stability (was sensitive to the path)
This is a fixup for r267304.
The test was sensitive to the path in a subtle way:
the index in memory is sorted by GUID, which are hashes
that include the source filename for local globals.
Teresa recently added a directive at the IR level, so
we can specify it here to make the test independent of
the path.
From: Mehdi Amini <mehdi.amini at apple.com>
Modified:
llvm/trunk/test/Bitcode/thinlto-function-summary-originalnames.ll
Modified: llvm/trunk/test/Bitcode/thinlto-function-summary-originalnames.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Bitcode/thinlto-function-summary-originalnames.ll?rev=267305&r1=267304&r2=267305&view=diff
==============================================================================
--- llvm/trunk/test/Bitcode/thinlto-function-summary-originalnames.ll (original)
+++ llvm/trunk/test/Bitcode/thinlto-function-summary-originalnames.ll Sat Apr 23 19:03:57 2016
@@ -11,6 +11,13 @@
; COMBINED-NEXT: <COMBINED_ALIAS
; COMBINED-NEXT: <COMBINED_ORIGINAL_NAME op0=-4170563161550796836/>
; COMBINED-NEXT: </GLOBALVAL_SUMMARY_BLOCK>
+; COMBINED-NEXT: <VALUE_SYMTAB
+; COMBINED-NEXT: <COMBINED_GVDEFENTRY {{.*}} op2=4947176790635855146/>
+; COMBINED-NEXT: <COMBINED_GVDEFENTRY {{.*}} op2=-6591587165810580810/>
+; COMBINED-NEXT: <COMBINED_GVDEFENTRY {{.*}} op2=-4377693495213223786/>
+; COMBINED-NEXT: </VALUE_SYMTAB>
+
+source_filename = "/path/to/source.c"
; ModuleID = 'thinlto-function-summary-callgraph.ll'
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
More information about the llvm-commits
mailing list