diff options
author | Fraser Cormack <fraser@codeplay.com> | 2021-02-04 12:07:59 +0000 |
---|---|---|
committer | Fraser Cormack <fraser@codeplay.com> | 2021-02-16 10:21:09 +0000 |
commit | b8701990202cd305236401f76331d53e65953ef2 (patch) | |
tree | af4c5f3f4c95c13c3d79fb0b404d6c7cd4eef023 /clang/unittests/Frontend/CompilerInvocationTest.cpp | |
parent | df22133a8a402ed2d31ff92482678c5092792e66 (diff) | |
download | llvm-b8701990202cd305236401f76331d53e65953ef2.zip llvm-b8701990202cd305236401f76331d53e65953ef2.tar.gz llvm-b8701990202cd305236401f76331d53e65953ef2.tar.bz2 |
[RISCV] Add patterns for scalable-vector fabs & fcopysign
The patterns mostly follow the scalar counterparts, save for some extra
optimizations to match the vector/scalar forms.
The patch adds a DAGCombine for ISD::FCOPYSIGN to try and reorder
ISD::FNEG around any ISD::FP_EXTEND or ISD::FP_TRUNC of the second
operand. This helps us achieve better codegen to match vfsgnjn.
Reviewed By: craig.topper
Differential Revision: https://reviews.llvm.org/D96028
Diffstat (limited to 'clang/unittests/Frontend/CompilerInvocationTest.cpp')
0 files changed, 0 insertions, 0 deletions