1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 19:52:54 +01:00

[TypePromotion] Remove redundant if. NFC

The same condition was checked in the previous if. Maybe this was
a bad merge resolution?
This commit is contained in:
Craig Topper 2021-07-26 11:46:31 -07:00
parent 800de3f8d5
commit 837c44ce91

View File

@ -920,9 +920,6 @@ bool TypePromotion::TryToPromote(Value *V, unsigned PromotedWidth) {
if (ToPromote < 2 || (Blocks.size() == 1 && (NonFreeArgs > SafeWrap.size())))
return false;
if (ToPromote < 2)
return false;
IRPromoter Promoter(*Ctx, cast<IntegerType>(OrigTy), PromotedWidth,
CurrentVisited, Sources, Sinks, SafeWrap);
Promoter.Mutate();