commit | 2b2262b395f9cb2f8fa5d75643d030eedd2fb999 | [log] [tgz] |
---|---|---|
author | Jessica Paquette <jpaquette@apple.com> | Mon Jun 10 21:53:56 2019 +0000 |
committer | Copybara-Service <copybara-worker@google.com> | Sun Oct 18 14:17:45 2020 -0700 |
tree | 6ff2bab06c7b4b141a4f3a5838dae93abef89d4a | |
parent | d132011a70df1759a84a9676ce7cbab9cee51971 [diff] |
[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 GitOrigin-RevId: b22954384e34eebb761db342dbad0b08dfb57856