OSDN Git Service

[SystemZ] Remove unnecessary serialization before volatile loads
authorUlrich Weigand <ulrich.weigand@de.ibm.com>
Fri, 23 Jun 2017 15:56:14 +0000 (15:56 +0000)
committerUlrich Weigand <ulrich.weigand@de.ibm.com>
Fri, 23 Jun 2017 15:56:14 +0000 (15:56 +0000)
commitdd1f27e281a148dc16425d91b4d2548d26e92e75
tree895d1bf22037939db3e065e6a409a6495a6d4207
parent45dca99e22e95666bfcc4d500b58c1b1684abd32
[SystemZ] Remove unnecessary serialization before volatile loads

This reverts the use of TargetLowering::prepareVolatileOrAtomicLoad
introduced by r196905.  Nothing in the semantics of the "volatile"
keyword or the definition of the z/Architecture actually requires
that volatile loads are preceded by a serialization operation, and
no other compiler on the platform actually implements this.

Since we've now seen a use case where this additional serialization
causes noticable performance degradation, this patch removes it.

The patch still leaves in the serialization before atomic loads,
which is now implemented directly in lowerATOMIC_LOAD.  (This also
seems overkill, but that can be addressed separately.)

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@306117 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/SystemZ/SystemZISelLowering.cpp
lib/Target/SystemZ/SystemZISelLowering.h
lib/Target/SystemZ/SystemZInstrInfo.td
lib/Target/SystemZ/SystemZOperators.td
test/CodeGen/SystemZ/serialize-01.ll [deleted file]