This is an archive of the discontinued LLVM Phabricator instance.

[RISCV][ISelLowering] Fix select lowering issue
ClosedPublic

Authored by dybv-sc on Jan 10 2023, 8:48 AM.

Details

Summary

Fix bug that leads to some pseudo instructions not being lowered.

Diff Detail

Event Timeline

dybv-sc created this revision.Jan 10 2023, 8:48 AM
Herald added a project: Restricted Project. · View Herald TranscriptJan 10 2023, 8:48 AM
dybv-sc requested review of this revision.Jan 10 2023, 8:48 AM

I found a bug in RISCV backend. Reproduction: https://godbolt.org/z/qscGYbWvr
This patch fixes it.

jrtc27 added inline comments.Jan 10 2023, 9:03 AM
llvm/test/CodeGen/RISCV/float-select-verify.ll
2–3

;; instead of NOTE, and use update_llc_test_checks.py. And why mention opt, you're not running opt, you're running llc?

dybv-sc updated this revision to Diff 488132.Jan 11 2023, 3:00 AM
  • Added autogenerated checks.
  • Removed notes completely.
asb accepted this revision.Jan 17 2023, 6:38 AM

LGTM.

This revision is now accepted and ready to land.Jan 17 2023, 6:38 AM
This revision was automatically updated to reflect the committed changes.