[llvm] [LowerSwitch] Use unsigned integer for range comparison (PR #93237)
Antonio Frighetto via llvm-commits
llvm-commits at lists.llvm.org
Fri May 24 12:53:38 PDT 2024
================
@@ -0,0 +1,94 @@
+; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
+; RUN: opt < %s -passes=lower-switch -S | FileCheck %s
+define void @i3_range_4(i3 %0) {
+; CHECK-LABEL: @i3_range_4(
+; CHECK-NEXT: bb.0:
+; CHECK-NEXT: br label [[LEAFBLOCK:%.*]]
+; CHECK: LeafBlock:
+; CHECK-NEXT: [[DOTOFF:%.*]] = add i3 [[TMP0:%.*]], 2
----------------
antoniofrighetto wrote:
Yeah I figured that just after leaving the comment, was just quite strange to see temporary placeholder used as argument...
https://github.com/llvm/llvm-project/pull/93237
More information about the llvm-commits
mailing list