This is an archive of the discontinued LLVM Phabricator instance.

[RISCV] Call combineSelectToBinOp before generic select expansion for Zicond.
ClosedPublic

Authored by craig.topper on Aug 1 2023, 10:05 AM.

Details

Summary

This handles logical ops of setccs and optimizes when the true or
false value is -1.

Diff Detail

Event Timeline

craig.topper created this revision.Aug 1 2023, 10:05 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 1 2023, 10:05 AM
craig.topper requested review of this revision.Aug 1 2023, 10:05 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 1 2023, 10:05 AM
Herald added subscribers: eopXD, MaskRay. · View Herald Transcript
wangpc accepted this revision.Aug 1 2023, 10:38 AM

LGTM

llvm/test/CodeGen/RISCV/select-binop-identity.ll
43–44

nit: These CHECKs are the same as RV32I/RV64I, add prefixes to RUN lines of zicond/xventanacondops?

This revision is now accepted and ready to land.Aug 1 2023, 10:38 AM
asb accepted this revision.Aug 1 2023, 11:01 AM

LGTM.