[llvm] [IR][TRE] Support associative intrinsics (PR #74226)

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Mon Dec 4 01:53:31 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:

Yeah, you're right.

https://github.com/llvm/llvm-project/pull/74226


More information about the llvm-commits mailing list