Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
[llvm] r131455 - /llvm/trunk/lib/Target/X86/REA DME.txt
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Chris Lattner  
View profile  
 More options May 17 2011, 3:22 am
From: Chris Lattner <sa...@nondot.org>
Date: Tue, 17 May 2011 07:22:33 -0000
Local: Tues, May 17 2011 3:22 am
Subject: [llvm-commits] [llvm] r131455 - /llvm/trunk/lib/Target/X86/README.txt
Author: lattner
Date: Tue May 17 02:22:33 2011
New Revision: 131455

URL: http://llvm.org/viewvc/llvm-project?rev=131455&view=rev
Log:
add a note

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

Modified: llvm/trunk/lib/Target/X86/README.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/README....
=========================================================================== ===
--- llvm/trunk/lib/Target/X86/README.txt (original)
+++ llvm/trunk/lib/Target/X86/README.txt Tue May 17 02:22:33 2011
@@ -2040,3 +2040,29 @@
 The move of 0 could be scheduled above the test to make it is xor reg,reg.

 //===---------------------------------------------------------------------= ==//
+
+GCC PR48986.  We currently compile this:
+
+void bar(void);
+void yyy(int* p) {
+    if (__sync_fetch_and_add(p, -1) == 1)
+      bar();
+}
+
+into:
+       movl    $-1, %eax
+       lock
+       xaddl   %eax, (%rdi)
+       cmpl    $1, %eax
+       je      LBB0_2
+
+Instead we could generate:
+
+       lock
+       dec %rdi
+       je LBB0_2
+
+The trick is to match "fetch_and_add(X, -C) == C".
+
+//===--------------------------------------------------------------------- ===//
+

_______________________________________________
llvm-commits mailing list
llvm-comm...@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
pagee...@freemail.hu  
View profile  
 More options May 17 2011, 3:45 am
From: pagee...@freemail.hu
Date: Tue, 17 May 2011 09:45:33 +0200
Local: Tues, May 17 2011 3:45 am
Subject: Re: [llvm-commits] [llvm] r131455 - /llvm/trunk/lib/Target/X86/README.txt
On 17 May 2011 at 7:22, Chris Lattner wrote:

> +into:
> +  movl    $-1, %eax
> +  lock
> +  xaddl   %eax, (%rdi)
> +  cmpl    $1, %eax
> +  je      LBB0_2
> +
> +Instead we could generate:
> +
> +  lock
> +  dec %rdi

           ^^^^

you probably meant dec (%rdi) ?

> +  je LBB0_2
> +
> +The trick is to match "fetch_and_add(X, -C) == C".

_______________________________________________
llvm-commits mailing list
llvm-comm...@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »