This is needed for some future support for vector ICMP.
Also make G_TRUNC always legal as we need it as a legalization artifact, and the current legacy rules don't cover some vector types.
| Paths 
 |  Differential  D60433  
[AArch64][GlobalISel] Add legalization for some vector G_LSR and G_ASHR ClosedPublic Authored by aemerson on Apr 8 2019, 6:20 PM. 
Details Summary This is needed for some future support for vector ICMP. Also make G_TRUNC always legal as we need it as a legalization artifact, and the current legacy rules don't cover some vector types. 
Diff Detail 
 Event TimelineHerald added subscribers: Petar.Avramovic, hiraditya, kristof.beyls and 2 others.  ·  View Herald TranscriptApr 8 2019, 6:20 PM aemerson added a parent revision: D60425: [GlobalISel][AArch64] Allow CallLowering to handle types.Apr 8 2019, 6:20 PM aemerson added a child revision: D60435: [AArch64][GlobalISel] Legalize vector G_ICMP.Apr 8 2019, 6:32 PM Comment Actions LGTM 
 This revision is now accepted and ready to land.Apr 9 2019, 9:37 AM Closed by commit rL358033: [AArch64][GlobalISel] Add legalization for some vector G_SHL and G_ASHR. (authored by aemerson).  ·  Explain WhyApr 9 2019, 2:24 PM This revision was automatically updated to reflect the committed changes. 
Revision Contents 
Diff 194398 llvm/trunk/include/llvm/CodeGen/GlobalISel/LegalizerInfo.h
 llvm/trunk/lib/Target/AArch64/AArch64LegalizerInfo.cpp
 llvm/trunk/test/CodeGen/AArch64/GlobalISel/legalize-shift.mir
 llvm/trunk/test/CodeGen/AArch64/GlobalISel/legalizer-info-validation.mir
 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||