Implement load unsigned 8-bit pseudo operation. Implement extending loads patterns extloadi1/i8/i16.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
The code conforms to ISA. One "optimization" remark: pseudo-instruction might be replaced by tablegen pattern in this case.
llvm/lib/Target/Xtensa/XtensaISelLowering.cpp | ||
---|---|---|
1141 | This snippet can be represented as Tablegen pattern below. def : Pat<(i32 (sextloadi8 addr_ish1:$addr)), (SRAI (SLLI (L8UI addr_ish1:$addr), (i32 24)), (i32 24))>; |
This snippet can be represented as Tablegen pattern below.
If that is true, we don't have to use pseudo instruction in this case.