Skip to content

Commit

Permalink
[PhaseOrdering] Add data layout to test (NFC)
Browse files Browse the repository at this point in the history
Needed for switch to lookup table optimization.
  • Loading branch information
nikic committed Dec 20, 2023
1 parent 5ab5810 commit 273a0c9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions llvm/test/Transforms/PhaseOrdering/switch_with_geps.ll
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
Expand Down

0 comments on commit 273a0c9

Please sign in to comment.