[all-commits] [llvm/llvm-project] 673a46: [ConstantFold] Avoid creation of undesirable binop
Nikita Popov via All-commits
all-commits at lists.llvm.org
Tue Jul 25 07:55:16 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 673a4671f3e8b7158d990f6456428175a6eac38c
https://github.com/llvm/llvm-project/commit/673a4671f3e8b7158d990f6456428175a6eac38c
Author: Nikita Popov <npopov at redhat.com>
Date: 2023-07-25 (Tue, 25 Jul 2023)
Changed paths:
M llvm/lib/IR/ConstantFold.cpp
M llvm/test/Transforms/InstCombine/pr32686.ll
Log Message:
-----------
[ConstantFold] Avoid creation of undesirable binop
When commuting the operands, don't create a constant expression
for undesirable binops. Only invoke the constant folding function
in that case.
More information about the All-commits
mailing list