[llvm] select (sext m), (add X, C), X --> (add X, (and C, (sext m)))) (PR #83640)
    Phoebe Wang via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Sat Mar  2 04:45:04 PST 2024
    
        - Previous message: [llvm] select (sext m), (add X, C), X --> (add X, (and C, (sext m)))) (PR #83640)
 
        - Next message: [llvm] [DAG] select (sext m), (add X, C), X --> (add X, (and C, (sext m)))) (PR #83640)
 
         -  Messages sorted by: 
              [ date ]
              [ thread ]
              [ subject ]
              [ author ]
         
 
       
    
  
================
@@ -7,6 +7,38 @@
 ; Verify that we don't emit packed vector shifts instructions if the
 ; condition used by the vector select is a vector of constants.
 
+define <2 x i64> @masked_select_const(<2 x i64> %a, <2 x i64> %x, <2 x i64> %y) {
----------------
phoebewang wrote:
Use `<4 x i32>` to avoid unnecessary `bitcast`. And move the test to the end of the file since it's not directly related to above comments.
https://github.com/llvm/llvm-project/pull/83640
    
    
        
	- Previous message: [llvm] select (sext m), (add X, C), X --> (add X, (and C, (sext m)))) (PR #83640)
 
	- Next message: [llvm] [DAG] select (sext m), (add X, C), X --> (add X, (and C, (sext m)))) (PR #83640)
 
         -  Messages sorted by: 
              [ date ]
              [ thread ]
              [ subject ]
              [ author ]
         
 
       
More information about the llvm-commits
mailing list