This is an archive of the discontinued LLVM Phabricator instance.

[CSKY] Optimize 'llvm.cttz.i32' and 'llvm.ctlz.i32'
ClosedPublic

Authored by benshi001 on Aug 1 2023, 2:05 AM.

Diff Detail

Event Timeline

benshi001 created this revision.Aug 1 2023, 2:05 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 1 2023, 2:05 AM
Herald added a subscriber: hiraditya. · View Herald Transcript
benshi001 requested review of this revision.Aug 1 2023, 2:05 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 1 2023, 2:05 AM
zixuan-wu added inline comments.Aug 1 2023, 2:11 AM
llvm/lib/Target/CSKY/CSKYISelLowering.cpp
1406

I think no more need of Ty->isIntegerTy(Subtarget.XLen)

benshi001 updated this revision to Diff 545973.Aug 1 2023, 2:20 AM
benshi001 marked an inline comment as done.
zixuan-wu accepted this revision.Aug 1 2023, 2:46 AM
This revision is now accepted and ready to land.Aug 1 2023, 2:46 AM
This revision was automatically updated to reflect the committed changes.