Remove redundant code. [NFC]
authorRong Xu <xur@google.com>
Fri, 1 Jul 2022 16:56:47 +0000 (09:56 -0700)
committerRong Xu <xur@google.com>
Fri, 1 Jul 2022 17:58:18 +0000 (10:58 -0700)
isAssumeLikeIntrinsic() is a superset of isLifetimeStartOrEnd().

llvm/include/llvm/Analysis/IRSimilarityIdentifier.h

index 3666138..a3f1c13 100644 (file)
@@ -547,7 +547,7 @@ struct IRInstructionMapper {
       // an outlined function. Also, assume-like intrinsics could be removed
       // from the region, removing arguments, causing discrepencies in the
       // number of inputs between different regions.
-      if (II.isLifetimeStartOrEnd() || II.isAssumeLikeIntrinsic())
+      if (II.isAssumeLikeIntrinsic())
         return Illegal;
       return EnableIntrinsics ? Legal : Illegal;
     }