From: Ehsan Amiri Date: Fri, 18 Mar 2016 04:02:25 +0000 (+0000) Subject: adding another optimization opportunity to readme file X-Git-Tag: llvmorg-3.9.0-rc1~11481 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=631ed04af04d349eb4886e17ddc688e496eac8cc;p=platform%2Fupstream%2Fllvm.git adding another optimization opportunity to readme file llvm-svn: 263775 --- diff --git a/llvm/lib/Target/PowerPC/README.txt b/llvm/lib/Target/PowerPC/README.txt index 01233ae..f1d4ca7 100644 --- a/llvm/lib/Target/PowerPC/README.txt +++ b/llvm/lib/Target/PowerPC/README.txt @@ -589,6 +589,17 @@ entry: %tmp34 = zext i1 %tmp3 to 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