[PATCH] D158976: [RISCV] Add isCommutable for pseudos without merge operand
Wang Pengcheng via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 28 03:46:39 PDT 2023
wangpc created this revision.
wangpc added reviewers: craig.topper, reames, fakepaper56, michaelmaitland.
Herald added subscribers: jobnoorman, luke, sunshaoce, VincentWu, vkmr, frasercrmck, luismarques, apazos, sameer.abuasal, s.egerton, Jim, benna, psnobl, jocewei, PkmX, the_o, brucehoult, MartinMosbeck, rogfer01, edward-jones, zzheng, jrtc27, shiva0217, kito-cheng, niosHD, sabuasal, simoncook, johnrusso, rbar, asb, hiraditya, arichardson.
Herald added a project: All.
wangpc requested review of this revision.
Herald added subscribers: llvm-commits, eopXD, MaskRay.
Herald added a project: LLVM.
`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.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D158976
Files:
llvm/lib/Target/RISCV/RISCVInstrInfoVPseudos.td
llvm/test/CodeGen/RISCV/rvv/fixed-vectors-vfcmp-constrained-sdnode.ll
llvm/test/CodeGen/RISCV/rvv/vfcmp-constrained-sdnode.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D158976.553887.patch
Type: text/x-patch
Size: 170811 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230828/a4836948/attachment-0001.bin>
More information about the llvm-commits
mailing list