[llvm] [AArch64][GlobalISel] Take abs scalar codegen closer to SDAG (PR #84886)
    Madhur Amilkanthwar via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Tue Mar 19 04:56:15 PDT 2024
    
    
  
================
@@ -515,6 +515,7 @@ AArch64LegalizerInfo::AArch64LegalizerInfo(const AArch64Subtarget &ST)
   getActionDefinitionsBuilder(G_ICMP)
       .legalFor({{s32, s32},
                  {s32, s64},
+                 {s64, s64},
----------------
madhur13490 wrote:
{s64, s64} is legal for G_SELECT but further the index is clamped to s32. I don't understand why this is done. 
Inspiring from this I made {s64, s64} legal for G_ICMP.
https://github.com/llvm/llvm-project/pull/84886
    
    
More information about the llvm-commits
mailing list