mirror of
https://github.com/RPCSX/llvm.git
synced 2025-01-07 12:30:44 +00:00
1b1291fbbb
Identify patterns where the address is aligned to an 8-byte boundary, but both the base address and the constant offset are both proper multiples of 4. In such cases, extract Base+4 into a separate instruc- tion, and use S2_storerd_io, instead of using S4_storerd_rr. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@277497 91177308-0d34-0410-b5e6-96231b3b80d8
13 lines
330 B
LLVM
13 lines
330 B
LLVM
; RUN: llc -march=hexagon < %s | FileCheck %s
|
|
; Check for memd(base + #offset), instead of memd(base + reg<<#c).
|
|
; CHECK: memd(r{{[0-9]+}}+#
|
|
|
|
define void @fred(i32 %p, i64 %v) #0 {
|
|
%t0 = add i32 %p, 4
|
|
%t1 = inttoptr i32 %t0 to i64*
|
|
store i64 %v, i64* %t1
|
|
ret void
|
|
}
|
|
|
|
attributes #0 = { nounwind "target-cpu"="hexagonv60" }
|