mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-24 20:29:53 +00:00
86ef16a761
https://llvm.org/bugs/show_bug.cgi?id=24766#c2 This removes a hack that was added for the benefit of x86 codegen. It prevented shrinking the switch condition even to smaller legal (DataLayout) types. We have a safety mechanism in CGP after: http://reviews.llvm.org/rL251857 ...so we're free to use the optimal (smallest) IR type now. Differential Revision: http://reviews.llvm.org/D12965 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@274233 91177308-0d34-0410-b5e6-96231b3b80d8
25 lines
517 B
LLVM
25 lines
517 B
LLVM
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
|
|
; RUN: opt < %s -instcombine -S | FileCheck %s
|
|
|
|
; Provide legal integer types.
|
|
target datalayout = "n8:16:32:64"
|
|
|
|
define void @PR21651() {
|
|
; CHECK-LABEL: @PR21651(
|
|
; CHECK-NEXT: switch i1 false, label %out [
|
|
; CHECK-NEXT: i1 false, label %out
|
|
; CHECK-NEXT: i1 true, label %out
|
|
; CHECK-NEXT: ]
|
|
; CHECK: out:
|
|
; CHECK-NEXT: ret void
|
|
;
|
|
switch i2 0, label %out [
|
|
i2 0, label %out
|
|
i2 1, label %out
|
|
]
|
|
|
|
out:
|
|
ret void
|
|
}
|
|
|