This is an archive of the discontinued LLVM Phabricator instance.

[RISCV] Add sext.b/h and zext.b/h/w to RISCVInstrInfo::foldMemoryOperandImpl.
ClosedPublic

Authored by craig.topper on Jul 21 2022, 2:02 PM.

Details

Summary

We can always fold zext.b since it is just andi. The others require
Zba/Zbb.

Diff Detail