[llvm] [Transforms] Resolve FIXME: Pick the smallest legal type that fits (PR #79158)
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Thu Feb 1 01:27:28 PST 2024
================
@@ -1,5 +1,7 @@
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
-; RUN: opt < %s -passes='float2int' -S | FileCheck %s
+; RUN: opt < %s -passes='float2int' -S | FileCheck %s -check-prefix=NONE
+; RUN: opt < %s -passes='float2int' -S --data-layout="n64" | FileCheck %s -check-prefix=ONLY64
+; RUN: opt < %s -passes='float2int' -S --data-layout="n8:16:32:64"| FileCheck %s -check-prefix=MULTIPLE
----------------
nikic wrote:
```suggestion
; RUN: opt < %s -passes='float2int' -S | FileCheck %s -check-prefixes=CHECK,NONE
; RUN: opt < %s -passes='float2int' -S --data-layout="n64" | FileCheck %s -check-prefixes=CHECK,ONLY64
; RUN: opt < %s -passes='float2int' -S --data-layout="n8:16:32:64"| FileCheck %s -check-prefixes=CHECK,MULTIPLE
```
This will de-duplicat the check lines in cases where they are the same, which should be most of them.
https://github.com/llvm/llvm-project/pull/79158
More information about the llvm-commits
mailing list