[llvm] [InstCombine][RISCV] Convert VPIntrinsics with splat operands to splats (PR #65706)

Michael Maitland via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 7 22:14:26 PDT 2023


================
@@ -0,0 +1,896 @@
+; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
----------------
michaelmaitland wrote:

> I think we can have f16 vector without having scalar f16 arithmetic

I think that is possible too.

> that would generate more code to convert to f32 and back. Maybe the backend should use VL=1 vectors in that case?

Is it possible to query what the backend has from InstCombine so that we can decide whether or not we'd like to do this optimization?


https://github.com/llvm/llvm-project/pull/65706


More information about the llvm-commits mailing list