[PATCH] D110037: [X86] Always check the size of SourceTy before getting the next type

Michael Kruse via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sun Sep 19 18:38:42 PDT 2021


Meinersbur added a comment.

In D110037#3008292 <https://reviews.llvm.org/D110037#3008292>, @pengfei wrote:

> What do you think?

The test-suite is an end-to-end/integration test while tests monorepository are unit/regression tests. They have different purposes.
(Personally, I would prefer to reduce the amount of unit/regression testing that can already be covered by the test-suite, but that would be a bigger story)



================
Comment at: clang/test/CodeGen/X86/va-arg-sse.c:2
 // NOTE: Assertions have been autogenerated by utils/update_cc_test_checks.py
 // RUN: %clang_cc1 %s -O2 -emit-llvm -o - -triple x86_64-unknown-unknown | FileCheck %s
 
----------------
lebedev.ri wrote:
> Please don't use `-O*` in clang irgen tests.
> This should *only* test what IR is produced by clang itself.
I agree here, testing `-O*` output will break easily with any unrelated change in LLVM.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D110037



More information about the cfe-commits mailing list