Skip to content

Commit

Permalink
Remove redundant code. [NFC]
Browse files Browse the repository at this point in the history
isAssumeLikeIntrinsic() is a superset of isLifetimeStartOrEnd().
  • Loading branch information
xur-llvm committed Jul 1, 2022
1 parent daeb2dc commit b764e58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion llvm/include/llvm/Analysis/IRSimilarityIdentifier.h
Expand Up @@ -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;
}
Expand Down

0 comments on commit b764e58

Please sign in to comment.