aboutsummaryrefslogtreecommitdiff
path: root/lldb/packages/Python/lldbsuite/test
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2021-02-21 17:49:49 +0100
committerNikita Popov <nikita.ppv@gmail.com>2021-02-21 18:42:56 +0100
commite0615bcd39fd863361ce8eb68aafdfcdcd8b067d (patch)
tree8480ed1dcac28189f554d3620d157d75aae3d634 /lldb/packages/Python/lldbsuite/test
parent215bb15791c6aefdb0810ffa29900dd4215bf8c3 (diff)
downloadllvm-e0615bcd39fd863361ce8eb68aafdfcdcd8b067d.zip
llvm-e0615bcd39fd863361ce8eb68aafdfcdcd8b067d.tar.gz
llvm-e0615bcd39fd863361ce8eb68aafdfcdcd8b067d.tar.bz2
[Loads] Add optimized FindAvailableLoadedValue() overload (NFCI)
FindAvailableLoadedValue() accepts an iterator by reference. If no available value is found, then the iterator will either be left at a clobbering instruction or the beginning of the basic block. This allows using FindAvailableLoadedValue() across multiple blocks. If this functionality is not needed, as is the case in InstCombine, then we can use a much more efficient implementation: First try to find an available value, and only perform clobber checks if we actually found one. As this function only looks at a very small number of instructions (6 by default) and usually doesn't find an available value, this saves many expensive alias analysis queries.
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test')
0 files changed, 0 insertions, 0 deletions