This is an archive of the discontinued LLVM Phabricator instance.

[RISCV] Improve selection for vector fpclass.
ClosedPublic

Authored by jacquesguan on Jun 1 2023, 9:14 PM.

Details

Summary

Since vfclass intruction will only set one single bit in the result, so if we only want to check 1 fp class, we could use vmseq to do it.

Diff Detail

Event Timeline

jacquesguan created this revision.Jun 1 2023, 9:14 PM
Herald added a project: Restricted Project. · View Herald TranscriptJun 1 2023, 9:14 PM
jacquesguan requested review of this revision.Jun 1 2023, 9:14 PM
craig.topper added inline comments.Jun 2 2023, 9:57 AM
llvm/lib/Target/RISCV/RISCVISelLowering.cpp
4465

bool IsOneBitMask = isPowerOf2_32(TDCMask)

Address comment.

jacquesguan marked an inline comment as done.Jun 4 2023, 7:52 PM
This revision is now accepted and ready to land.Jun 5 2023, 5:23 PM
This revision was automatically updated to reflect the committed changes.