aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@sifive.com>2021-03-09 08:51:01 -0800
committerCraig Topper <craig.topper@sifive.com>2021-03-09 08:51:03 -0800
commit72ecf2f43ffb5cbc18a3f0572006bb4f891bf3dc (patch)
treead04aca24a12f655c253da8e39102075472d7405 /clang/lib/Frontend/CompilerInvocation.cpp
parent478317fbb79034694df934900665f363dd6c9a70 (diff)
downloadllvm-72ecf2f43ffb5cbc18a3f0572006bb4f891bf3dc.zip
llvm-72ecf2f43ffb5cbc18a3f0572006bb4f891bf3dc.tar.gz
llvm-72ecf2f43ffb5cbc18a3f0572006bb4f891bf3dc.tar.bz2
[RISCV] Optimize fixed vector ABS. Fix crash on scalable vector ABS for SEW=64 with RV32.
The default fixed vector expansion uses sra+xor+add since it can't see that smax is legal due to our custom handling. So we select smax(X, sub(0, X)) manually. Scalable vectors are able to use the smax expansion automatically for most cases. It crashes in one case because getConstant can't build a SPLAT_VECTOR for nxvXi64 when i64 scalars aren't legal. So we manually emit a SPLAT_VECTOR_I64 for that case. Reviewed By: frasercrmck Differential Revision: https://reviews.llvm.org/D97991
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions