[llvm] [LowerSwitch] Use unsigned integer for range comparison (PR #93237)

Peter Rong via llvm-commits llvm-commits at lists.llvm.org
Fri May 24 14:31:24 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
----------------
DataCorrupted wrote:

Ah, I didn't know `--version 5` was a thing… was copying and pasting from my old scripts.
Just updated. Thanks for pointing out. 
Let me know if you have other questions.  Will merge if no comments in 24 hours.

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


More information about the llvm-commits mailing list