diff options
author | Nikita Popov <npopov@redhat.com> | 2023-07-20 14:31:18 +0200 |
---|---|---|
committer | Nikita Popov <npopov@redhat.com> | 2023-07-20 15:24:19 +0200 |
commit | f8a36d8c3e264c4fccf8058e699201a452ea7bb7 (patch) | |
tree | 47bf91cdaa5cbd6cfcd5e2eae8e9ae83da705032 /llvm/lib/IR/ConstantFold.cpp | |
parent | 632594fcb1c9b6a25da32a58cd7364ce02aec745 (diff) | |
download | llvm-f8a36d8c3e264c4fccf8058e699201a452ea7bb7.zip llvm-f8a36d8c3e264c4fccf8058e699201a452ea7bb7.tar.gz llvm-f8a36d8c3e264c4fccf8058e699201a452ea7bb7.tar.bz2 |
[IR] Mark add constant expressions as undesirable
In preparation for removing support for add expressions, mark them
as undesirable. As such, we will no longer implicitly create such
expressions, but they still exist.
Diffstat (limited to 'llvm/lib/IR/ConstantFold.cpp')
-rw-r--r-- | llvm/lib/IR/ConstantFold.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/llvm/lib/IR/ConstantFold.cpp b/llvm/lib/IR/ConstantFold.cpp index 4c33250..40b2187 100644 --- a/llvm/lib/IR/ConstantFold.cpp +++ b/llvm/lib/IR/ConstantFold.cpp @@ -1241,8 +1241,6 @@ Constant *llvm::ConstantFoldBinaryInstruction(unsigned Opcode, Constant *C1, case Instruction::Add: case Instruction::Sub: return ConstantExpr::getXor(C1, C2); - case Instruction::Mul: - return ConstantExpr::getAnd(C1, C2); case Instruction::Shl: case Instruction::LShr: case Instruction::AShr: |