[all-commits] [llvm/llvm-project] 90d825: Reapply [ConstantFold] Avoid creation of undesirab...
Nikita Popov via All-commits
all-commits at lists.llvm.org
Thu Jul 27 00:49:10 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 90d825be708cd09ab7bfbb6b7a10a98a9847c7c4
https://github.com/llvm/llvm-project/commit/90d825be708cd09ab7bfbb6b7a10a98a9847c7c4
Author: Nikita Popov <npopov at redhat.com>
Date: 2023-07-27 (Thu, 27 Jul 2023)
Changed paths:
M llvm/lib/IR/ConstantFold.cpp
Log Message:
-----------
Reapply [ConstantFold] Avoid creation of undesirable binop
This was reverted together with another commit due to a test
conflict. Reapply without functional changes.
-----
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