we found that llvm now doesn't support riscv vsetvl instruction to tail folding. we create a new cmdline option:
--prefer-predicate-over-epilogue=vlen-else-scalar-epilogue
which can do tali folding with riscv vsetvl instruction.
Co-authored-by: lidawei lidawei.1226@bytedance.com
It's target-dependent.
I would suggest that we add target hooks in TargetTransformInfo.