mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-05 13:26:55 +00:00
X86: Open up some opportunities for constant folding by postponing shift lowering.
Fixes PR15141. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@174327 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -112,6 +112,16 @@ define <8 x i32> @vshift08(<8 x i32> %a) nounwind {
|
||||
ret <8 x i32> %bitop
|
||||
}
|
||||
|
||||
; PR15141
|
||||
; CHECK: _vshift13:
|
||||
; CHECK-NOT: vpsll
|
||||
; CHECK: vcvttps2dq
|
||||
; CHECK-NEXT: vpmulld
|
||||
define <4 x i32> @vshift13(<4 x i32> %in) {
|
||||
%T = shl <4 x i32> %in, <i32 0, i32 1, i32 2, i32 4>
|
||||
ret <4 x i32> %T
|
||||
}
|
||||
|
||||
;;; Uses shifts for sign extension
|
||||
; CHECK: _sext_v16i16
|
||||
; CHECK: vpsllw
|
||||
|
Reference in New Issue
Block a user