[all-commits] [llvm/llvm-project] 8249d6: [InstCombine] Avoid uses of ConstantExpr::getOr()
Nikita Popov via All-commits
all-commits at lists.llvm.org
Mon Jul 24 07:51:04 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 8249d6724ccd8876b421dd96151dab98fa45210c
https://github.com/llvm/llvm-project/commit/8249d6724ccd8876b421dd96151dab98fa45210c
Author: Nikita Popov <npopov at redhat.com>
Date: 2023-07-24 (Mon, 24 Jul 2023)
Changed paths:
M llvm/lib/Transforms/InstCombine/InstCombineCasts.cpp
M llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp
Log Message:
-----------
[InstCombine] Avoid uses of ConstantExpr::getOr()
Replace these with IRBuilder uses, as we don't (from a type
perspective) care about Constant results.
Switch the predicate to m_ImmConstant() instead of isa<Constant>
to guarantee that these do get folded away and our assumptions
about simplifications hold true.
More information about the All-commits
mailing list