[compiler-rt] r264491 - [libprofile] Adjust dummy condition to be more forgiving.

Sean Silva via llvm-commits llvm-commits at lists.llvm.org
Fri Mar 25 21:01:57 PDT 2016


Author: silvas
Date: Fri Mar 25 23:01:57 2016
New Revision: 264491

URL: http://llvm.org/viewvc/llvm-project?rev=264491&view=rev
Log:
[libprofile] Adjust dummy condition to be more forgiving.

On PS4, we have to fake environment variables by passing extra command
line arguments, so the dummy test `argc > 1` was failing.
The condition is just a dummy condition that the compiler can't fold
away, so the number is arbitrary as long as the condition is false.

Increase the number it compares against.

Modified:
    compiler-rt/trunk/test/profile/instrprof-write-file-only.c

Modified: compiler-rt/trunk/test/profile/instrprof-write-file-only.c
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/profile/instrprof-write-file-only.c?rev=264491&r1=264490&r2=264491&view=diff
==============================================================================
--- compiler-rt/trunk/test/profile/instrprof-write-file-only.c (original)
+++ compiler-rt/trunk/test/profile/instrprof-write-file-only.c Fri Mar 25 23:01:57 2016
@@ -11,7 +11,7 @@ int foo(int);
 int main(int argc, const char *argv[]) {
   // CHECK-LABEL: define {{.*}} @main(
   // CHECK: br i1 %{{.*}}, label %{{.*}}, label %{{.*}}, !prof ![[PD1:[0-9]+]]
-  if (argc > 1)
+  if (argc > 42)
     return 1;
 
   // Since the runtime has been suppressed, initialize the file name, as the




More information about the llvm-commits mailing list