Skip to content

Commit ac26708

Browse files
committed
[MemProf][NFC] Make new test actually check cold attributes
The test added by PR81322 didn't actually check the coldness of the attributes being matched on the IR. Add that checking.
1 parent 5abbe8e commit ac26708

File tree

1 file changed

+3
-0
lines changed
  • llvm/test/Transforms/MemProfContextDisambiguation

1 file changed

+3
-0
lines changed

llvm/test/Transforms/MemProfContextDisambiguation/inlined3.ll

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,9 @@ attributes #7 = { builtin }
188188
; IR: define {{.*}} @_Z1Mv.memprof.1()
189189
; IR: call {{.*}} @_Z2XZv.memprof.1()
190190

191+
; IR: attributes #[[NOTCOLD]] = { builtin "memprof"="notcold" }
192+
; IR: attributes #[[COLD]] = { builtin "memprof"="cold" }
193+
191194
; STATS: 2 memprof-context-disambiguation - Number of cold static allocations (possibly cloned)
192195
; STATS: 2 memprof-context-disambiguation - Number of not cold static allocations (possibly cloned)
193196
; STATS: 3 memprof-context-disambiguation - Number of function clones created during whole program analysis

0 commit comments

Comments
 (0)