[PATCH] Remove ISD::MEMBARRIER node?

Tim Northover t.p.northover at gmail.com
Fri Apr 19 11:39:38 PDT 2013


Hi all,

I've been looking at atomic operations recently, and noticed that
ISD::MEMBARRIER seems to be a bit of an orphan. As far as I can see
nothing can generate it, but multiple targets nevertheless contain
code to handle it specifically.

It was a bit before my time, but some archaeology suggests it was the
primary barrier instruction from the bad old days when we thought that
a fence was all you needed for synchronisation.

The attached patch removes this node (no test changes were necessary
to pass!). Is there any reason I shouldn't commit it?

(N.b. I've left the ShouldFoldAtomicFences stuff in even though it's
unused after this patch because I intend to work on a set of valid
ATOMIC_FENCE combines this weekend).

Tim.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: remove-membarrier.diff
Type: application/octet-stream
Size: 22518 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20130419/c90c5858/attachment.obj>


More information about the llvm-commits mailing list