Promote select, vselect and vp.select in a similar way.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Unit Tests
Time | Test | |
---|---|---|
70 ms | x64 debian > LLVM.Bindings/Go::go.test |
Event Timeline
LGTM other than nit. I'd prefer to leave official acceptance to someone outside our company, though.
llvm/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp | ||
---|---|---|
1133 | nit: maybe we should rename this function as it suggests it only handles (upper-case) ISD::SELECT rather than the family of selects. PromoteIntRes_Select? I dunno if that's a great name but SELECT is misleading. |
LGTM
llvm/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp | ||
---|---|---|
1133 | +1 for PromoteIntRes_Select |
llvm/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp | ||
---|---|---|
1140 | Use getNode(N->getOpcode() to match the widening patch and avoid a runtime check for of the condition type to pick the opcode. |
LGTM with that one comment.
llvm/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp | ||
---|---|---|
81 | Restore the old formatting with the call and the break on the same line as the case. |
clang-format not found in user’s local PATH; not linting file.