diff options
author | Sumanth Gundapaneni <sumanth.gundapaneni@amd.com> | 2024-08-21 12:13:56 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-21 12:13:56 -0500 |
commit | e78156a0e225673e592920410c8cadc94f19aa66 (patch) | |
tree | e94da3eb308f14e7f920898e9b33968dff7cb66e /llvm/lib/CodeGen/TargetLoweringBase.cpp | |
parent | c61d565721d0cf03e2658ec65a3526dd89142e52 (diff) | |
download | llvm-e78156a0e225673e592920410c8cadc94f19aa66.zip llvm-e78156a0e225673e592920410c8cadc94f19aa66.tar.gz llvm-e78156a0e225673e592920410c8cadc94f19aa66.tar.bz2 |
Scalarize the vector inputs to llvm.lround intrinsic by default. (#101054)
Verifier is updated in a different patch to let the vector types for
llvm.lround and llvm.llround intrinsics.
Diffstat (limited to 'llvm/lib/CodeGen/TargetLoweringBase.cpp')
-rw-r--r-- | llvm/lib/CodeGen/TargetLoweringBase.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/TargetLoweringBase.cpp b/llvm/lib/CodeGen/TargetLoweringBase.cpp index 4ff8617..35d6304 100644 --- a/llvm/lib/CodeGen/TargetLoweringBase.cpp +++ b/llvm/lib/CodeGen/TargetLoweringBase.cpp @@ -774,8 +774,9 @@ void TargetLoweringBase::initActions() { setOperationAction( {ISD::FCOPYSIGN, ISD::SIGN_EXTEND_INREG, ISD::ANY_EXTEND_VECTOR_INREG, ISD::SIGN_EXTEND_VECTOR_INREG, ISD::ZERO_EXTEND_VECTOR_INREG, - ISD::SPLAT_VECTOR, ISD::LRINT, ISD::LLRINT, ISD::FTAN, ISD::FACOS, - ISD::FASIN, ISD::FATAN, ISD::FCOSH, ISD::FSINH, ISD::FTANH}, + ISD::SPLAT_VECTOR, ISD::LRINT, ISD::LLRINT, ISD::LROUND, + ISD::LLROUND, ISD::FTAN, ISD::FACOS, ISD::FASIN, ISD::FATAN, + ISD::FCOSH, ISD::FSINH, ISD::FTANH}, VT, Expand); // Constrained floating-point operations default to expand. |