summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp
diff options
context:
space:
mode:
authorDaniel Neilson <dneilson@azul.com>2017-06-29 14:21:28 +0000
committerDaniel Neilson <dneilson@azul.com>2017-06-29 14:21:28 +0000
commitaad1a6f0a417ed8da71e2c5e8aed9e47c989fe26 (patch)
treef71a9ad186ed6ac65fc9a163068327aa63f97787 /lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp
parent98d220e0a53a392963ce3c7336b0806e89bf49ae (diff)
downloadbcm5719-llvm-aad1a6f0a417ed8da71e2c5e8aed9e47c989fe26.tar.gz
bcm5719-llvm-aad1a6f0a417ed8da71e2c5e8aed9e47c989fe26.zip
Restore original intent of memset instcombine test
Summary: The original intent of test/Transforms/InstCombine/memset.ll was to test for lowering of llvm.memset into stores when the size of the memset is 1, 2, 4, or 8. Sometime between then and now the test has stopped testing for that, but remained passing due to testing for the absence of llvm.memset calls rather than the presence of store instructions. Right now this test ends up with an empty function body because the alloca is eliminated as safe-to-remove, which results in the llvm.memset calls's being eliminated due to their pointer args being undef; so it is not testing for conversion of llvm.memset into store instructions at all. This change alters the test to verify that store instructions are created, and moves the target of the memset to an arg of the proc to avoid it being eliminated as unused. Reviewers: anna, efriedma Reviewed By: efriedma Subscribers: efriedma, llvm-commits Differential Revision: https://reviews.llvm.org/D34642 llvm-svn: 306681
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud