This is a straightforward port.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
llvm/lib/CodeGen/GlobalISel/LegalizerHelper.cpp | ||
---|---|---|
5382 | Curses! Actually it predates me and originally comes from D47725. My only guess is that it's a cute way of indicating a reverse shift by "reversing" the letters S H, in which case I think it's too cute, and not in a good way. I'll leave it up to you whether to change it to something more understandable or not. |
llvm/lib/CodeGen/GlobalISel/LegalizerHelper.cpp | ||
---|---|---|
5372–5374 | I believe alternate lowerings based on instruction legality should be split into separate lower* functions. That way custom lowering can pick the strategy itself, and the default function would then use these crude legality heuristics to pick which strategy to use. |
Looks fine to me modulo the naming nit.
llvm/include/llvm/CodeGen/GlobalISel/LegalizerHelper.h | ||
---|---|---|
351 | Nit: "opposite" is now the third word we're using for the same thing. The code calls it "reverse", and the equivalent funnel shift function (three lines up) calls it "inverse". Could we standardize on one? I'd vote for "reverse". |
llvm/include/llvm/CodeGen/GlobalISel/LegalizerHelper.h | ||
---|---|---|
351 | Sure, I'll change that before landing. |
Nit: "opposite" is now the third word we're using for the same thing. The code calls it "reverse", and the equivalent funnel shift function (three lines up) calls it "inverse". Could we standardize on one? I'd vote for "reverse".