aboutsummaryrefslogtreecommitdiff
path: root/llvm/unittests/Support/VirtualFileSystemTest.cpp
diff options
context:
space:
mode:
authorFelipe de Azevedo Piovezan <fpiovezan@apple.com>2023-05-02 12:53:36 -0400
committerFelipe de Azevedo Piovezan <fpiovezan@apple.com>2023-05-03 10:58:31 -0400
commita524f84780297f12d4aba18c002ce3e7b3675011 (patch)
treea172f01dc3a3b166413463afcba62f6accf02717 /llvm/unittests/Support/VirtualFileSystemTest.cpp
parent8e46ac3623b4dfbd7127fc0deee5cf82a3f9d472 (diff)
downloadllvm-a524f84780297f12d4aba18c002ce3e7b3675011.zip
llvm-a524f84780297f12d4aba18c002ce3e7b3675011.tar.gz
llvm-a524f84780297f12d4aba18c002ce3e7b3675011.tar.bz2
[SelectionDAG][NFCI] Use common logic for identifying MMI vars
After function argument lowering, but prior to instruction selection, dbg declares pointing to function arguments are lowered using special logic. Later, during instruction selection (both "fast" and regular ISel), this logic is "repeated" in order to identify which intrinsics have already been lowered. This is bad for two reasons: 1. The logic is not _really_ repeated, the code is different, which could lead to duplicate lowering of the intrinsic. 2. Even if the logic were repeated properly, this is still code duplication. This patch addresses these issues by storing all preprocessed dbg.declare intrinsics in a set inside FuncInfo; the set is queried upon instruction selection. Differential Revision: https://reviews.llvm.org/D149682
Diffstat (limited to 'llvm/unittests/Support/VirtualFileSystemTest.cpp')
0 files changed, 0 insertions, 0 deletions