aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/CommandLine.cpp
diff options
context:
space:
mode:
authorpvanhout <pierre.vanhoutryve@amd.com>2023-04-17 15:26:24 +0200
committerpvanhout <pierre.vanhoutryve@amd.com>2023-04-18 14:23:58 +0200
commit83ae2d3618c1f959031e78573691f1ea86b7c809 (patch)
tree711cf54cae5b17beaaa7be4c6d6e8614050b373e /llvm/lib/Support/CommandLine.cpp
parent311260a699162897d3e626bc18127a1471e1b2d8 (diff)
downloadllvm-83ae2d3618c1f959031e78573691f1ea86b7c809.zip
llvm-83ae2d3618c1f959031e78573691f1ea86b7c809.tar.gz
llvm-83ae2d3618c1f959031e78573691f1ea86b7c809.tar.bz2
[AMDGPU] Refactor PromoteAlloca implementation
We're getting a lot of mileage out of PromoteAlloca, and the pass had grown somewhat organically over the year. This patch attempts to clean up the implementation and restructure it. For instance, the exact same code path is now used for both promote alloca to LDS and promote alloca to vector - just with different parameters. This removes some redundancy here and there. I also reordered functions in a way that hopefully makes more sense (e.g. all of the pass API is in the same place) No functionality change is intended in the patch, but some checks were movved around so I'm not using the NFC tag. Reviewed By: arsenm Differential Revision: https://reviews.llvm.org/D148526
Diffstat (limited to 'llvm/lib/Support/CommandLine.cpp')
0 files changed, 0 insertions, 0 deletions