diff options
author | Jessica Paquette <jpaquette@apple.com> | 2019-06-10 21:53:56 +0000 |
---|---|---|
committer | Jessica Paquette <jpaquette@apple.com> | 2019-06-10 21:53:56 +0000 |
commit | b22954384e34eebb761db342dbad0b08dfb57856 (patch) | |
tree | 18c3fd4611aae4293cc2a50dd3cc9231984f824d /llvm/lib/Target/BPF/BPFTargetMachine.cpp | |
parent | 23ee97be05f4e75fd40696ee3f2fd5c11b1a46f2 (diff) | |
download | bcm5719-llvm-b22954384e34eebb761db342dbad0b08dfb57856.tar.gz bcm5719-llvm-b22954384e34eebb761db342dbad0b08dfb57856.zip |
[GlobalISel] Translate memset/memmove/memcpy from undef ptrs into nops
If the source is undef, then just don't do anything.
This matches SelectionDAG's behaviour in SelectionDAG.cpp.
Also add a test showing that we do the right thing here.
(irtranslator-memfunc-undef.ll)
Differential Revision: https://reviews.llvm.org/D63095
llvm-svn: 362989
Diffstat (limited to 'llvm/lib/Target/BPF/BPFTargetMachine.cpp')
0 files changed, 0 insertions, 0 deletions