[llvm] [SelectOpt] Add handling for Select-like operations. (PR #77284)
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Wed Jan 17 13:12:06 PST 2024
================
@@ -129,6 +124,146 @@ class SelectOptimizeImpl {
Scaled64 NonPredCost;
};
+ /// SelectLike is an abstraction over SelectInst and other operations that can
+ /// act like selects. For example Or(Zext(icmp), X) can be treated like
+ /// select(icmp, X|1, X).
+ class SelectLike {
+ private:
----------------
fhahn wrote:
nit: this is redundant here?
https://github.com/llvm/llvm-project/pull/77284
More information about the llvm-commits
mailing list