OSDN Git Service

Revert r324835 "[X86] Reduce Store Forward Block issues in HW"
authorHans Wennborg <hans@hanshq.net>
Mon, 12 Feb 2018 12:43:39 +0000 (12:43 +0000)
committerHans Wennborg <hans@hanshq.net>
Mon, 12 Feb 2018 12:43:39 +0000 (12:43 +0000)
commited3f0858d7208bfaf4a5cf5010adb34e99a6559b
tree770435c6ba6b129fd4ccbe8494a85c0400aa11ac
parent70675617679f37af1e407e2bd19ddca9ca716bfd
Revert r324835 "[X86] Reduce Store Forward Block issues in HW"

It asserts building Chromium; see PR36346.

(This also reverts the follow-up r324836.)

> If a load follows a store and reloads data that the store has written to memory, Intel microarchitectures can in many cases forward the data directly from the store to the load, This "store forwarding" saves cycles by enabling the load to directly obtain the data instead of accessing the data from cache or memory.
> A "store forward block" occurs in cases that a store cannot be forwarded to the load. The most typical case of store forward block on Intel Core microarchiticutre that a small store cannot be forwarded to a large load.
> The estimated penalty for a store forward block is ~13 cycles.
>
> This pass tries to recognize and handle cases where "store forward block" is created by the compiler when lowering memcpy calls to a sequence
> of a load and a store.
>
> The pass currently only handles cases where memcpy is lowered to XMM/YMM registers, it tries to break the memcpy into smaller copies.
> breaking the memcpy should be possible since there is no atomicity guarantee for loads and stores to XMM/YMM.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@324887 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/CMakeLists.txt
lib/Target/X86/X86.h
lib/Target/X86/X86FixupSFB.cpp [deleted file]
lib/Target/X86/X86TargetMachine.cpp
test/CodeGen/X86/fixup-sfb.ll [deleted file]