summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/README.txt
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2007-03-20 22:22:38 +0000
committerEvan Cheng <evan.cheng@apple.com>2007-03-20 22:22:38 +0000
commit3578dd61c6f9a4110ef2a38fac3993e0ebaa861c (patch)
treedbc4aa4215f5ba85edda1fcc258ba141e1d6fb29 /llvm/lib/CodeGen/README.txt
parentbacf4acf65bb554da97ef624739c14210d768220 (diff)
downloadbcm5719-llvm-3578dd61c6f9a4110ef2a38fac3993e0ebaa861c.tar.gz
bcm5719-llvm-3578dd61c6f9a4110ef2a38fac3993e0ebaa861c.zip
Potential spiller improvement.
llvm-svn: 35228
Diffstat (limited to 'llvm/lib/CodeGen/README.txt')
-rw-r--r--llvm/lib/CodeGen/README.txt27
1 files changed, 27 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/README.txt b/llvm/lib/CodeGen/README.txt
new file mode 100644
index 00000000000..3f295126fb3
--- /dev/null
+++ b/llvm/lib/CodeGen/README.txt
@@ -0,0 +1,27 @@
+Common register allocation / spilling problem:
+
+ mul lr, r4, lr
+ str lr, [sp, #+52]
+ ldr lr, [r1, #+32]
+ sxth r3, r3
+ ldr r4, [sp, #+52]
+ mla r4, r3, lr, r4
+
+can be:
+
+ mul lr, r4, lr
+ mov r4, lr
+ str lr, [sp, #+52]
+ ldr lr, [r1, #+32]
+ sxth r3, r3
+ mla r4, r3, lr, r4
+
+and then "merge" mul and mov:
+
+ mul r4, r4, lr
+ str lr, [sp, #+52]
+ ldr lr, [r1, #+32]
+ sxth r3, r3
+ mla r4, r3, lr, r4
+
+It also increase the likelyhood the store may become dead.
OpenPOWER on IntegriCloud