No need to emit bitcat op for integer operands if it is detected that after minbitwidth analysis the type is the same.
28 lines
957 B
LLVM
28 lines
957 B
LLVM
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --version 4
|
|
; RUN: opt -S --passes=slp-vectorizer -mtriple=x86_64-unknown-linux-gnu < %s | FileCheck %s
|
|
|
|
define void @t() {
|
|
; CHECK-LABEL: define void @t() {
|
|
; CHECK-NEXT: entry:
|
|
; CHECK-NEXT: [[TMP0:%.*]] = or i32 0, 0
|
|
; CHECK-NEXT: [[TMP1:%.*]] = and i32 [[TMP0]], 65535
|
|
; CHECK-NEXT: store i32 [[TMP1]], ptr null, align 4
|
|
; CHECK-NEXT: ret void
|
|
;
|
|
entry:
|
|
%conv12.1.i = trunc i64 0 to i32
|
|
%mul.i.1.i = mul i32 %conv12.1.i, 0
|
|
%conv12.i = trunc i64 0 to i32
|
|
%mul.i.i = mul i32 %conv12.i, 0
|
|
%conv14104.i = or i32 %mul.i.1.i, %mul.i.i
|
|
%conv12.1.i.1 = trunc i64 0 to i32
|
|
%mul.i.1.i.1 = mul i32 %conv12.1.i.1, 0
|
|
%conv12.i.1 = trunc i64 0 to i32
|
|
%mul.i.i.1 = mul i32 %conv12.i.1, 0
|
|
%conv14104.i.1 = or i32 %mul.i.1.i.1, %mul.i.i.1
|
|
%0 = or i32 %conv14104.i, %conv14104.i.1
|
|
%1 = and i32 %0, 65535
|
|
store i32 %1, ptr null, align 4
|
|
ret void
|
|
}
|