This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/58860] tail-merge doesn't merge asm statements with vdef
- From: "vries at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 26 Nov 2013 17:13:26 +0000
- Subject: [Bug tree-optimization/58860] tail-merge doesn't merge asm statements with vdef
- Auto-submitted: auto-generated
- References: <bug-58860-4 at http dot gcc dot gnu dot org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58860
vries at gcc dot gnu.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2013-11-26
Ever confirmed|0 |1
--- Comment #1 from vries at gcc dot gnu.org ---
> __asm__ ("" : "=&p" (t), "=p" (*r));
Before pre, the asm looks like this:
...
# .MEM_9 = VDEF <.MEM_3(D)>
__asm__("" : "=&p" t_7, "=p" *x_4(D));
...
I don't think we will be able to handle this particular example, since it has
an ssa result (t_7), which we do not value number.
But we should be able to handle simpler examples, f.i. using:
...
__asm__ ("" : "=p" (*r));
...