1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 11:42:57 +01:00
llvm-mirror/lib/Transforms
Philip Reames 17055bcff3 [LoopVec] Support non-instructions as argument to uniform mem ops
The initial step of the uniform-after-vectorization (lane-0 demanded only) analysis was very awkwardly written. It would revisit use list of each pointer operand of a widened load/store. As a result, it was in the worst case O(N^2) where N was the number of instructions in a loop, and had restricted operand Value types to reduce the size of use lists.

This patch replaces the original algorithm with one which is at most O(2N) in the number of instructions in the loop. (The key observation is that each use of a potentially interesting pointer is visited at most twice, once on first scan, once in the use list of *it's* operand. Only instructions within the loop have their uses scanned.)

In the process, we remove a restriction which required the operand of the uniform mem op to itself be an instruction.  This allows detection of uniform mem ops involving global addresses.

Differential Revision: https://reviews.llvm.org/D92056
2020-12-03 14:51:44 -08:00
..
AggressiveInstCombine llvmbuildectomy - replace llvm-build by plain cmake 2020-11-13 10:35:24 +01:00
CFGuard llvmbuildectomy - replace llvm-build by plain cmake 2020-11-13 10:35:24 +01:00
Coroutines [AllocaInst] Update getAllocationSizeInBits to return TypeSize. 2020-11-27 16:39:10 +00:00
Hello
HelloNew llvmbuildectomy - replace llvm-build by plain cmake 2020-11-13 10:35:24 +01:00
InstCombine [XCOFF][AIX] Generate LSDA data and compact unwind section on AIX 2020-12-02 18:42:44 +00:00
Instrumentation [NFC] Reduce include files dependency. 2020-12-03 18:25:05 +03:00
IPO [NFC] Reduce include files dependency. 2020-12-03 18:25:05 +03:00
ObjCARC [NFC] Reduce include files dependency. 2020-12-03 18:25:05 +03:00
Scalar [NFC] Reduce include files dependency. 2020-12-03 18:25:05 +03:00
Utils [NFC] Reduce include files dependency. 2020-12-03 18:25:05 +03:00
Vectorize [LoopVec] Support non-instructions as argument to uniform mem ops 2020-12-03 14:51:44 -08:00
CMakeLists.txt Reland [docs][NewPM] Add docs for writing NPM passes 2020-09-14 16:06:19 -07:00