[PATCH] D140715: [AAPointerInfo] Remove redundant check

Shilei Tian via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 27 18:50:33 PST 2022


tianshilei1992 created this revision.
tianshilei1992 added reviewers: jdoerfert, sameerds.
Herald added subscribers: ormris, okura, kuter, hiraditya.
Herald added a project: All.
tianshilei1992 requested review of this revision.
Herald added a reviewer: sstefan1.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

The check is unnecessary because when `Assumption` is assigned, it will break the
loop immediately; otherwise `Assumption.first` is always false.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D140715

Files:
  llvm/lib/Transforms/IPO/AttributorAttributes.cpp


Index: llvm/lib/Transforms/IPO/AttributorAttributes.cpp
===================================================================
--- llvm/lib/Transforms/IPO/AttributorAttributes.cpp
+++ llvm/lib/Transforms/IPO/AttributorAttributes.cpp
@@ -1649,8 +1649,6 @@
             }
           }
         }
-        if (Assumption.first)
-          break;
       }
 
       // Check if we found an assumption associated with this load.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D140715.485448.patch
Type: text/x-patch
Size: 420 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221228/6bcc5bfa/attachment.bin>


More information about the llvm-commits mailing list