diff options
author | Craig Topper <craig.topper@sifive.com> | 2022-02-17 08:10:20 -0800 |
---|---|---|
committer | Craig Topper <craig.topper@sifive.com> | 2022-02-17 08:15:50 -0800 |
commit | 954fe404ab7f5dab917fe7987f68a3095ba10413 (patch) | |
tree | 043f2029f87cb715c190f6aaa16c2098dcb0a72c /clang/lib/Frontend/InitPreprocessor.cpp | |
parent | 8e17c9613f36f23b5a9d2720f330a37e54c6924f (diff) | |
download | llvm-954fe404ab7f5dab917fe7987f68a3095ba10413.zip llvm-954fe404ab7f5dab917fe7987f68a3095ba10413.tar.gz llvm-954fe404ab7f5dab917fe7987f68a3095ba10413.tar.bz2 |
[RISCV] Fix incorrect MemOperand copy converting splat+load to vlse.
Due to an incorrect copy/paste from load intrinsic handling we
checked if the splat node was a MemSDNode which of course it isn't.
Instead get the MemOperand from the LoadSDNode for the source of
the splat.
This enables LICM to see the load is loop invariant and hoist it
out of the loop.
Reviewed By: frasercrmck
Differential Revision: https://reviews.llvm.org/D120014
Diffstat (limited to 'clang/lib/Frontend/InitPreprocessor.cpp')
0 files changed, 0 insertions, 0 deletions