[PATCH] D64036: [Bitcode] Update CHECK-DAG usage in tests

Paul Robinson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 2 04:55:19 PDT 2019


probinson added a subscriber: aprantl.
probinson added a comment.

+adrian who reviewed the patch that introduced upgrade-pointer-address-space.ll.



================
Comment at: llvm/test/Bitcode/upgrade-pointer-address-space.ll:3
 
-; CHECK-DAG: !DIDerivedType(tag: DW_TAG_pointer_type, baseType: !{{[0-9]+}}, size: {{[0-9]+}})
-; CHECK-DAG: !DIDerivedType(tag: DW_TAG_pointer_type, baseType: !{{[0-9]+}}, size: {{[0-9]+}})
-; CHECK-DAG: !DIDerivedType(tag: DW_TAG_pointer_type, baseType: !{{[0-9]+}}, size: {{[0-9]+}})
+; CHECK: !DIDerivedType(tag: DW_TAG_pointer_type, baseType: !{{[0-9]+}}, size: {{[0-9]+}})
----------------
jdenny wrote:
> Ugh, sorry, there are two occurrences of the matching text, so we can have two `CHECK` directives.  `CHECK-DAG` does not appear useful.  Will fix.
I went back to the review that introduced this test (D29670) and I can't tell what is being tested here.  It looks like prior LLVM versions would have passed this test as well, so it is not exercising the patch at all.
@kzhuravl what was the intent of this test? Proving that the disassembly reports two arbitrary pointer types with unspecified characteristics does not seem very useful.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D64036/new/

https://reviews.llvm.org/D64036





More information about the llvm-commits mailing list