add a simple hack
authorChris Lattner <sabre@nondot.org>
Mon, 24 Dec 2007 19:27:46 +0000 (19:27 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 24 Dec 2007 19:27:46 +0000 (19:27 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45343 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/X86/README.txt

index 8effd47766b4dd560a1bc3102a76eda7ed0705f7..ad15b14f16660ccb51913a7639d51aad709e4f0c 100644 (file)
@@ -1573,3 +1573,15 @@ _test:
 
 //===---------------------------------------------------------------------===//
 
+We can fold a store into "zeroing a reg".  Instead of:
+
+xorl    %eax, %eax
+movl    %eax, 124(%esp)
+
+we should get:
+
+movl    $0, 124(%esp)
+
+if the flags of the xor are dead.
+
+//===---------------------------------------------------------------------===//