[EarlyCSE] Value forwarding for unordered atomics

Description

[EarlyCSE] Value forwarding for unordered atomics

This patch teaches the fully redundant load part of EarlyCSE how to forward from atomic and volatile loads and stores, and how to eliminate unordered atomics (only). This patch does not include dead store elimination support for unordered atomics, that will follow in the near future.

The basic idea is that we allow all loads and stores to be tracked by the AvailableLoad table. We store a bit in the table which tracks whether load/store was atomic, and then only replace atomic loads with ones which were also atomic.

No attempt is made to refine our handling of ordered loads or stores. Those are still treated as full fences. We could pretty easily extend the release fence handling to release stores, but that should be a separate patch.

Differential Revision: http://reviews.llvm.org/D15337

Details

Committed
reamesDec 8 2015, 1:45 PM
Differential Revision
D15337: [EarlyCSE] Value forwarding for unordered atomics
Parents
rL255053: [X86][SSE4A] Added fast-isel intrinsics tests
Branches
Unknown
Tags
Unknown