Details
- Reviewers
t.p.northover ab qcolombet dsanders volkan
Diff Detail
Event Timeline
Could you add a test case or an explanation if it's not possible to add a test case?
lib/CodeGen/GlobalISel/LegalizerHelper.cpp | ||
---|---|---|
611 | Could you use local variables for the operands to reduce duplication? | |
617 | The result type is boolean. Why do we need to build a G_FPTRUNC instead of G_TRUNC? | |
630 | Same here. |
lib/CodeGen/GlobalISel/LegalizerHelper.cpp | ||
---|---|---|
617 | Good point. I used G_FPTRUNC to be consistent - but I guess it makes more sense to use G_TRUNC here. I'll update it. |
Updated AArch64 G_ICMP/FCMP's destination to be widened to s16. Also updated the test cases.
AArch64 has no 16-bit instructions (at least outside the SIMD unit). The first sensible type to legalize to is s32.
Could you use local variables for the operands to reduce duplication?