aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/IR/ConstantFold.cpp
diff options
context:
space:
mode:
authorNikita Popov <npopov@redhat.com>2023-07-20 14:31:18 +0200
committerNikita Popov <npopov@redhat.com>2023-07-21 10:10:50 +0200
commit086ee99564afbb11449c08ea2e094f7f49fadde5 (patch)
tree4191815d5864cec64f7a7e8fcb3b44574564c4a1 /llvm/lib/IR/ConstantFold.cpp
parent163268ada0679a3cbaa3488e6e485770548c37f0 (diff)
downloadllvm-086ee99564afbb11449c08ea2e094f7f49fadde5.zip
llvm-086ee99564afbb11449c08ea2e094f7f49fadde5.tar.gz
llvm-086ee99564afbb11449c08ea2e094f7f49fadde5.tar.bz2
Reapply [IR] Mark and constant expressions as undesirable
Reapply after fixing an issue in canonicalizeLogicFirst() exposed by this change (218f97578b26f7a89f7f8ed0748c31ef0181f80a). ----- In preparation for removing support for and 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.cpp2
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: