[llvm] [GISel] Infer the type of an immediate when there is one element in TEC (PR #77399)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Mon Jan 8 22:37:57 PST 2024
================
@@ -428,7 +429,8 @@ PatternType CombineRuleOperandTypeChecker::inferImmediateType(
// Named operand with the same name, try to infer that.
if (PatternType InferTy =
- inferNamedOperandType(IP, Op.getOperandName(), TECs))
+ inferNamedOperandType(IP, Op.getOperandName(), TECs,
+ /*IncludeSelf=*/true))
----------------
arsenm wrote:
Nit: Operand name doesn't match the function definition's "AllowSelf"
https://github.com/llvm/llvm-project/pull/77399
More information about the llvm-commits
mailing list