[all-commits] [llvm/llvm-project] 86d1ed: [InlineCost] Avoid ConstantExpr::getSelect()
Nikita Popov via All-commits
all-commits at lists.llvm.org
Mon Feb 27 07:47:33 PST 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 86d1ed9e480849ff57dfee23975165465ebe0fc8
https://github.com/llvm/llvm-project/commit/86d1ed9e480849ff57dfee23975165465ebe0fc8
Author: Nikita Popov <npopov at redhat.com>
Date: 2023-02-27 (Mon, 27 Feb 2023)
Changed paths:
M llvm/lib/Analysis/InlineCost.cpp
Log Message:
-----------
[InlineCost] Avoid ConstantExpr::getSelect()
Instead use ConstantFoldSelectInstruction(), which will return
nullptr if it cannot be folded and a constant expression would
be produced instead.
In preparation for removing select constant expressions.
More information about the All-commits
mailing list