[llvm] [TRE] Add tests for intrinsic accumulators (PR #74226)
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Sun Dec 3 01:16:18 PST 2023
================
@@ -2556,6 +2556,32 @@ Constant *ConstantExpr::getBinOpIdentity(unsigned Opcode, Type *Ty,
}
}
+Constant *ConstantExpr::getIntrinsicIdentity(Intrinsic::ID ID, Type *Ty) {
+ switch (ID) {
+ case Intrinsic::umax:
----------------
nikic wrote:
You can use `MinMaxIntrinsic::getSaturationPoint()`.
https://github.com/llvm/llvm-project/pull/74226
More information about the llvm-commits
mailing list