[llvm] 1df703a - BPF: Remove unnecessary isReg check for copy source (#208486)

via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 9 09:02:32 PDT 2026


Author: Matt Arsenault
Date: 2026-07-09T16:02:28Z
New Revision: 1df703a6f4cd535e5af49ad15afcc043c68b81ca

URL: https://github.com/llvm/llvm-project/commit/1df703a6f4cd535e5af49ad15afcc043c68b81ca
DIFF: https://github.com/llvm/llvm-project/commit/1df703a6f4cd535e5af49ad15afcc043c68b81ca.diff

LOG: BPF: Remove unnecessary isReg check for copy source (#208486)

Added: 
    

Modified: 
    llvm/lib/Target/BPF/BPFMIPeephole.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Target/BPF/BPFMIPeephole.cpp b/llvm/lib/Target/BPF/BPFMIPeephole.cpp
index 675b1118d5c9e..c6fa0bf6d23bc 100644
--- a/llvm/lib/Target/BPF/BPFMIPeephole.cpp
+++ b/llvm/lib/Target/BPF/BPFMIPeephole.cpp
@@ -96,9 +96,6 @@ bool BPFMIPeephole::isCopyFrom32Def(MachineInstr *CopyMI)
 {
   MachineOperand &opnd = CopyMI->getOperand(1);
 
-  if (!opnd.isReg())
-    return false;
-
   // Return false if getting value from a 32bit physical register.
   // Most likely, this physical register is aliased to
   // function call return value or current function parameters.


        


More information about the llvm-commits mailing list