[llvm] r263775 - adding another optimization opportunity to readme file

Ehsan Amiri via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 17 21:02:26 PDT 2016


Author: amehsan
Date: Thu Mar 17 23:02:25 2016
New Revision: 263775

URL: http://llvm.org/viewvc/llvm-project?rev=263775&view=rev
Log:
adding another optimization opportunity to readme file

Modified:
    llvm/trunk/lib/Target/PowerPC/README.txt

Modified: llvm/trunk/lib/Target/PowerPC/README.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/PowerPC/README.txt?rev=263775&r1=263774&r2=263775&view=diff
==============================================================================
--- llvm/trunk/lib/Target/PowerPC/README.txt (original)
+++ llvm/trunk/lib/Target/PowerPC/README.txt Thu Mar 17 23:02:25 2016
@@ -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
 




More information about the llvm-commits mailing list