The bit masking lowering only works for vectors of scalars, so for pointer element types we need to add some casting.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
llvm/lib/CodeGen/GlobalISel/LegalizerHelper.cpp | ||
---|---|---|
7275 | Could you hoist the buildOr out of the if-statement? Then you only need the cast if IsEltPtr. |
llvm/lib/CodeGen/GlobalISel/LegalizerHelper.cpp | ||
---|---|---|
7275 | Not really, because in the !IsEltPtr case we're trying to re-use the DstReg register, while in the other branch we're creating a new value since we need to then cast it. |
llvm/lib/CodeGen/GlobalISel/LegalizerHelper.cpp | ||
---|---|---|
7272 | Nit: when there's an "else" I prefer to put the "if (IsEltPtr)" case first to avoid an implied double negative. |
llvm/lib/CodeGen/GlobalISel/LegalizerHelper.cpp | ||
---|---|---|
7272 | Ok I'll change that before commit. |
llvm/lib/CodeGen/GlobalISel/LegalizerHelper.cpp | ||
---|---|---|
7235 | Can sink this into the if |
Can sink this into the if