aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/IR/Constants.cpp
diff options
context:
space:
mode:
authorJay Foad <jay.foad@amd.com>2023-04-20 11:17:24 +0100
committerJay Foad <jay.foad@amd.com>2023-04-20 11:18:00 +0100
commit84f36b82f4d577e8c6a290d81ae3786cb8ba5c6b (patch)
tree0f59ee298ac8ae5b7272a5360baaa517b4934ff4 /llvm/lib/IR/Constants.cpp
parent998e8236133ed57792f4659221552f12b4c6d889 (diff)
downloadllvm-84f36b82f4d577e8c6a290d81ae3786cb8ba5c6b.zip
llvm-84f36b82f4d577e8c6a290d81ae3786cb8ba5c6b.tar.gz
llvm-84f36b82f4d577e8c6a290d81ae3786cb8ba5c6b.tar.bz2
[IR] Remove dead code for unsupported ConstantExpr binops
Diffstat (limited to 'llvm/lib/IR/Constants.cpp')
-rw-r--r--llvm/lib/IR/Constants.cpp13
1 files changed, 0 insertions, 13 deletions
diff --git a/llvm/lib/IR/Constants.cpp b/llvm/lib/IR/Constants.cpp
index 398ceda..1d9808e 100644
--- a/llvm/lib/IR/Constants.cpp
+++ b/llvm/lib/IR/Constants.cpp
@@ -2259,22 +2259,9 @@ Constant *ConstantExpr::get(unsigned Opcode, Constant *C1, Constant *C2,
case Instruction::Add:
case Instruction::Sub:
case Instruction::Mul:
- case Instruction::UDiv:
- case Instruction::SDiv:
- case Instruction::URem:
- case Instruction::SRem:
assert(C1->getType()->isIntOrIntVectorTy() &&
"Tried to create an integer operation on a non-integer type!");
break;
- case Instruction::FAdd:
- case Instruction::FSub:
- case Instruction::FMul:
- case Instruction::FDiv:
- case Instruction::FRem:
- assert(C1->getType()->isFPOrFPVectorTy() &&
- "Tried to create a floating-point operation on a "
- "non-floating-point type!");
- break;
case Instruction::And:
case Instruction::Or:
case Instruction::Xor: