[llvm] 41e71f5 - [GlobalISel] Remove unneeded empty check. NFC

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Sun Aug 20 21:11:17 PDT 2023


Author: Fangrui Song
Date: 2023-08-20T21:11:13-07:00
New Revision: 41e71f500df9ea2e6d35629ec5447943e78c970e

URL: https://github.com/llvm/llvm-project/commit/41e71f500df9ea2e6d35629ec5447943e78c970e
DIFF: https://github.com/llvm/llvm-project/commit/41e71f500df9ea2e6d35629ec5447943e78c970e.diff

LOG: [GlobalISel] Remove unneeded empty check. NFC

Added: 
    

Modified: 
    llvm/lib/CodeGen/GlobalISel/CSEInfo.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/CodeGen/GlobalISel/CSEInfo.cpp b/llvm/lib/CodeGen/GlobalISel/CSEInfo.cpp
index e047996f9aa8b7..d966fae82985a1 100644
--- a/llvm/lib/CodeGen/GlobalISel/CSEInfo.cpp
+++ b/llvm/lib/CodeGen/GlobalISel/CSEInfo.cpp
@@ -244,8 +244,6 @@ void GISelCSEInfo::changedInstr(MachineInstr &MI) { changingInstr(MI); }
 void GISelCSEInfo::analyze(MachineFunction &MF) {
   setMF(MF);
   for (auto &MBB : MF) {
-    if (MBB.empty())
-      continue;
     for (MachineInstr &MI : MBB) {
       if (!shouldCSE(MI.getOpcode()))
         continue;


        


More information about the llvm-commits mailing list