Skip to content
Commit 8c6d8381 authored by Pengcheng Wang's avatar Pengcheng Wang
Browse files

[RISCV] Add isCommutable for pseudos without merge operand

`vmadc` and vector mask-register logical instructions are commutable
and there is no merge operand for their pseudos.

We add `isCommutable=1` for these pseudos to gain more optimization
opportunities.

This patch fixes part of https://github.com/llvm/llvm-project/issues/64422.

Reviewed By: craig.topper

Differential Revision: https://reviews.llvm.org/D158976
parent 2916b125
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment