[llvm] 273a0c9 - [PhaseOrdering] Add data layout to test (NFC)
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Wed Dec 20 02:50:01 PST 2023
Author: Nikita Popov
Date: 2023-12-20T11:49:34+01:00
New Revision: 273a0c9c0798d2625ff6f9d7c16c7f2e2b4f71e3
URL: https://github.com/llvm/llvm-project/commit/273a0c9c0798d2625ff6f9d7c16c7f2e2b4f71e3
DIFF: https://github.com/llvm/llvm-project/commit/273a0c9c0798d2625ff6f9d7c16c7f2e2b4f71e3.diff
LOG: [PhaseOrdering] Add data layout to test (NFC)
Needed for switch to lookup table optimization.
Added:
Modified:
llvm/test/Transforms/PhaseOrdering/switch_with_geps.ll
Removed:
################################################################################
diff --git a/llvm/test/Transforms/PhaseOrdering/switch_with_geps.ll b/llvm/test/Transforms/PhaseOrdering/switch_with_geps.ll
index 238bd68ef5a5f2..8f497e92e4ea1e 100644
--- a/llvm/test/Transforms/PhaseOrdering/switch_with_geps.ll
+++ b/llvm/test/Transforms/PhaseOrdering/switch_with_geps.ll
@@ -3,6 +3,8 @@
; RUN: opt -S -passes='default<O2>' < %s | FileCheck %s
; RUN: opt -S -passes='default<O3>' < %s | FileCheck %s
+target datalayout = "n64"
+
%"OpKind::Zero" = type { [1 x i32], i32 }
%"OpKind::One" = type { [1 x i32], i32, i16, [1 x i16] }
%"OpKind::Two" = type { [1 x i32], i32, i16, i16 }
More information about the llvm-commits
mailing list