aboutsummaryrefslogtreecommitdiff
path: root/llvm/unittests/Support/CommandLineTest.cpp
diff options
context:
space:
mode:
authorNikita Popov <npopov@redhat.com>2022-09-08 14:27:31 +0200
committerNikita Popov <npopov@redhat.com>2022-09-09 13:09:59 +0200
commit4ab77d16776ac819dfa1de3b5dd56dc6da036108 (patch)
treef458ef003c53e50b988225e86af6aa43ad1a24a6 /llvm/unittests/Support/CommandLineTest.cpp
parent6d63a531e20a6ff91cce5f99a78623282280890c (diff)
downloadllvm-4ab77d16776ac819dfa1de3b5dd56dc6da036108.zip
llvm-4ab77d16776ac819dfa1de3b5dd56dc6da036108.tar.gz
llvm-4ab77d16776ac819dfa1de3b5dd56dc6da036108.tar.bz2
[LICM] Allow promotion with non-load/store users
If there are non-load/store users of the promoted pointer, we currently abort promotion. However, having such users isn't really relevant to the transform. We already separately check that a) there are no instructions that modref the promoted pointer and b) that a pointer capture disables store promotion. In the affected @test_captured_in_loop test case we have a readnone capture of the promoted pointer, which means that load promotion can be performed (while store promotion cannot). Differential Revision: https://reviews.llvm.org/D133485
Diffstat (limited to 'llvm/unittests/Support/CommandLineTest.cpp')
0 files changed, 0 insertions, 0 deletions