This is an archive of the discontinued LLVM Phabricator instance.

[SelectionDAG][RISCV] Support @llvm.vscale.i64() on 32-bit targets.
ClosedPublic

Authored by efriedma on Jul 12 2021, 1:20 PM.

Details

Summary

Not really useful on its own, but D105673 depends on it.

Diff Detail

Event Timeline

efriedma created this revision.Jul 12 2021, 1:20 PM
efriedma requested review of this revision.Jul 12 2021, 1:20 PM
Herald added a project: Restricted Project. · View Herald TranscriptJul 12 2021, 1:20 PM
Herald added a subscriber: MaskRay. · View Herald Transcript
craig.topper accepted this revision.Jul 12 2021, 1:28 PM

LGTM

llvm/test/CodeGen/RISCV/rvv/rvv-vscale.i64.ll
55

vlenb returns a multiple of 8 so we should be able to replace this srli 3 + slli 6 with just slli 3. But I think we have an ordering issue in visiting that prevents it from being simplified. That shouldn't block this patch though.

This revision is now accepted and ready to land.Jul 12 2021, 1:28 PM
This revision was landed with ongoing or failed builds.Jul 12 2021, 2:54 PM
This revision was automatically updated to reflect the committed changes.