[PATCH] D24097: Add testcases for PR30188
David Li via cfe-commits
cfe-commits at lists.llvm.org
Wed Aug 31 13:50:55 PDT 2016
davidxl added inline comments.
================
Comment at: clang/test/CodeGen/pr30188.c:3
@@ +2,3 @@
+
+// Check that optimizers are able to optimize the number of loads in the loop.
+// CHECK: load
----------------
Can you just do
... | grep load | count 3
================
Comment at: clang/test/CodeGen/pr30188.c:7
@@ +6,3 @@
+// CHECK: load
+// CHECK-NOT: load
+
----------------
Also check there is no store
================
Comment at: clang/test/CodeGenCXX/pr30188.cpp:5
@@ +4,3 @@
+// CHECK: load
+// CHECK-NOT: load
+
----------------
check no store as well?
https://reviews.llvm.org/D24097
More information about the cfe-commits
mailing list