[llvm] b764e58 - Remove redundant code. [NFC]
Rong Xu via llvm-commits
llvm-commits at lists.llvm.org
Fri Jul 1 10:58:56 PDT 2022
Author: Rong Xu
Date: 2022-07-01T10:58:18-07:00
New Revision: b764e58865ff9beb46d65da50c16d7b6e76481e2
URL: https://github.com/llvm/llvm-project/commit/b764e58865ff9beb46d65da50c16d7b6e76481e2
DIFF: https://github.com/llvm/llvm-project/commit/b764e58865ff9beb46d65da50c16d7b6e76481e2.diff
LOG: Remove redundant code. [NFC]
isAssumeLikeIntrinsic() is a superset of isLifetimeStartOrEnd().
Added:
Modified:
llvm/include/llvm/Analysis/IRSimilarityIdentifier.h
Removed:
################################################################################
diff --git a/llvm/include/llvm/Analysis/IRSimilarityIdentifier.h b/llvm/include/llvm/Analysis/IRSimilarityIdentifier.h
index 3666138ae2fd..a3f1c1335cac 100644
--- a/llvm/include/llvm/Analysis/IRSimilarityIdentifier.h
+++ b/llvm/include/llvm/Analysis/IRSimilarityIdentifier.h
@@ -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
diff erent regions.
- if (II.isLifetimeStartOrEnd() || II.isAssumeLikeIntrinsic())
+ if (II.isAssumeLikeIntrinsic())
return Illegal;
return EnableIntrinsics ? Legal : Illegal;
}
More information about the llvm-commits
mailing list