aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineFunctionPrinterPass.cpp
diff options
context:
space:
mode:
authorPhilip Reames <listmail@philipreames.com>2020-12-03 14:49:30 -0800
committerPhilip Reames <listmail@philipreames.com>2020-12-03 14:51:44 -0800
commit0c866a3d6aa492b01c29a2c582c56c0fd75c2970 (patch)
tree9cd1e233c65a2a5197734c0c185dae6608b90199 /llvm/lib/CodeGen/MachineFunctionPrinterPass.cpp
parent55db6ec1cc20d32ad179e0059aafcc545125fca6 (diff)
downloadllvm-0c866a3d6aa492b01c29a2c582c56c0fd75c2970.zip
llvm-0c866a3d6aa492b01c29a2c582c56c0fd75c2970.tar.gz
llvm-0c866a3d6aa492b01c29a2c582c56c0fd75c2970.tar.bz2
[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
Diffstat (limited to 'llvm/lib/CodeGen/MachineFunctionPrinterPass.cpp')
0 files changed, 0 insertions, 0 deletions