[llvm] [GlobalISel] Combine (X >> C) << C to X & ((-1 >> C) << C) (PR #114821)
    Dávid Ferenc Szabó via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Mon Nov  4 09:52:59 PST 2024
    
    
  
================
@@ -933,6 +933,17 @@ class GShl : public GenericMachineInstr {
   };
 };
 
+/// Represents a logical shift right.
+class GLshr : public GenericMachineInstr {
+public:
+  Register getSrcReg() const { return getOperand(1).getReg(); }
+  Register getShiftReg() const { return getOperand(2).getReg(); }
+
----------------
dfszabo wrote:
What do you mean exactly by this? 
https://github.com/llvm/llvm-project/pull/114821
    
    
More information about the llvm-commits
mailing list