[llvm] [Transforms] Resolve FIXME: Pick the smallest legal type that fits (PR #79158)

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 29 11:21:30 PST 2024


================
@@ -0,0 +1,351 @@
+; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
+; RUN: opt < %s -passes='float2int' -S | FileCheck %s
+target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64-S128"
----------------
nikic wrote:

Keep only the `n` part of the data layout, the rest is not relevant.

https://github.com/llvm/llvm-project/pull/79158


More information about the llvm-commits mailing list