This is required for many trees produced in practice for i8 CodeGen.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Address comments + rework "hasEightBitAccesses".
hasEightBitAccesses is really just a heuristic to stop combinations of type:
s_mov mask, 0x01000504
v_perm d, v1, v0, mask
when we can instead do:
v_lshl_or d, v0, 16, v1
These will occur iff both operands have ultimate srcs that are exactly 16 bit, and they are addressed as 16 bit operands in the relevant or (that is, they havent been byte extracted / shuffled).
Calling this "Src" is a bit confusing given you handle cast operations here and this is the Dest for them