Open Quuxplusone opened 13 years ago
Bugzilla Link | PR9517 |
Status | NEW |
Importance | P normal |
Reported by | Jörg Sonnenberger (joerg@NetBSD.org) |
Reported on | 2011-03-20 16:41:11 -0700 |
Last modified on | 2018-07-23 13:23:22 -0700 |
Version | trunk |
Hardware | PC Linux |
CC | echristo@gmail.com, efriedma@quicinc.com, llvm-bugs@lists.llvm.org, llvm-dev@ndave.org |
Fixed by commit(s) | |
Attachments | |
Blocks | |
Blocked by | |
See also |
The issue here is actually that the loads are not being CSE'ed; alias analysis is being overly conservative, in that it assumes the inline asm can modify "base".
(In reply to comment #1)
> The issue here is actually that the loads are not being CSE'ed; alias analysis
> is being overly conservative, in that it assumes the inline asm can modify
> "base".
I wasn't sure about that. It shouldn't assume that since there is no clobber
"memory" specified.
It shouldn't, but it does. There doesn't happen to be any convenient way to represent that the inline asm has side effects, but doesn't modify any memory visible to the compiler.
The volatile already expresses "this has side effects".
Still applies as of r200573.