Issue 175129
Summary [RISCV] SLEEF vectorization fails due to incompatible scalar attribute mapping
Labels new issue
Assignees
Reporter Ruhung
    When using -fveclib=SLEEF to enable math function vectorization on RISC-V, I ran into the following issue.

The problem occurs when a function declares a signext argument, E.g.:

`define double @ldexp_f64_signext(double %x, i32 signext %exp)
`

When InjectTLIMappings maps this scalar function to a vector variant, the signext attribute is copied to the vector type. This is invalid and causes the LLVM verifier pass to fail.

I have a draft PR that attempts to fix this issue: https://github.com/llvm/llvm-project/pull/173206, I would appreciate feedback and discussion on whether this is the correct way to fix it.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to