From b5cd24973cdcbc6da0b7e05700d6f4207aa20baf Mon Sep 17 00:00:00 2001 From: Evan Cheng Date: Wed, 18 Jul 2007 08:21:49 +0000 Subject: [PATCH] New entry. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@39998 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/X86/README.txt | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/lib/Target/X86/README.txt b/lib/Target/X86/README.txt index 4564b0f77be..f15090aad9d 100644 --- a/lib/Target/X86/README.txt +++ b/lib/Target/X86/README.txt @@ -1131,3 +1131,20 @@ _test: subl 4(%esp), %eax ret +//===---------------------------------------------------------------------===// + +For code like: +phi (undef, x) + +We get an implicit def on the undef side. If the phi is spilled, we then get: +implicitdef xmm1 +store xmm1 -> stack + +It should be possible to teach the x86 backend to "fold" the store into the +implicitdef, which just deletes the implicit def. + +These instructions should go away: +#IMPLICIT_DEF %xmm1 +movaps %xmm1, 192(%esp) +movaps %xmm1, 224(%esp) +movaps %xmm1, 176(%esp)