This is a fix for bug 37047. https://bugs.llvm.org/show_bug.cgi?id=37047 Implemented by basically reversing the logic. Previously all strings were considered, with some operations excluded. Now strings are excluded by default, and only strings during the CB considered. Patch By: pdknsk Differential Revision: https://reviews.llvm.org/D48800 llvm-svn: 337296
9 lines
297 B
Plaintext
9 lines
297 B
Plaintext
Tests -use_value_profile=2 (alternative VP metric).
|
|
RUN: %cpp_compiler %S/ThreeBytes.cpp -o %t
|
|
|
|
RUN: %run %t -seed=1 -runs=30000
|
|
RUN: %run %t -seed=1 -runs=30000 -use_value_profile=1
|
|
RUN: not %run %t -seed=1 -runs=1000000 -use_value_profile=2 2>&1 | FileCheck %s
|
|
|
|
CHECK: Test unit written
|