mirror of
https://github.com/RPCS3/llvm.git
synced 2025-02-12 22:30:12 +00:00
adding another optimization opportunity to readme file
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@263775 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
3175d6f980
commit
ffbba125c0
@ -589,6 +589,17 @@ entry:
|
||||
%tmp34 = zext i1 %tmp3 to i32 ; <i32> [#uses=1]
|
||||
ret i32 %tmp34
|
||||
}
|
||||
|
||||
//===---------------------------------------------------------------------===//
|
||||
for the following code:
|
||||
|
||||
void foo (float *__restrict__ a, int *__restrict__ b, int n) {
|
||||
a[n] = b[n] * 2.321;
|
||||
}
|
||||
|
||||
we load b[n] to GPR, then move it VSX register and convert it float. We should
|
||||
use vsx scalar integer load instructions to avoid direct moves
|
||||
|
||||
//===----------------------------------------------------------------------===//
|
||||
; RUN: llvm-as < %s | llc -march=ppc32 | not grep fneg
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user