Skip to content

Commit 1ddef8e

Browse files
committed
[ValueTracking][NFC] Simplify binops in canCreateUndefOrPoison switch
Already handled by default case.
1 parent db42345 commit 1ddef8e

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

llvm/lib/Analysis/ValueTracking.cpp

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7774,18 +7774,11 @@ static bool canCreateUndefOrPoison(const Operator *Op, UndefPoisonKind Kind,
77747774
case Instruction::FNeg:
77757775
case Instruction::PHI:
77767776
case Instruction::Select:
7777-
case Instruction::URem:
7778-
case Instruction::SRem:
77797777
case Instruction::ExtractValue:
77807778
case Instruction::InsertValue:
77817779
case Instruction::Freeze:
77827780
case Instruction::ICmp:
77837781
case Instruction::FCmp:
7784-
case Instruction::FAdd:
7785-
case Instruction::FSub:
7786-
case Instruction::FMul:
7787-
case Instruction::FDiv:
7788-
case Instruction::FRem:
77897782
return false;
77907783
case Instruction::GetElementPtr:
77917784
// inbounds is handled above

0 commit comments

Comments
 (0)