Consider the following dag:
t7: i1 = setcc t4, Constant:i64<1>, seteq:ch t12: i1 = setcc t10, Constant:i64<2>, seteq:ch t42: i1 = and t7, t12
setcc node is custom expanded, when
and is integer promoted.
The problem is that the Legalizer searches promoted integers for operands of ‘and’ instruction in
PromotedIntegers map (call
GetPromotedInteger for each operand).
But custom expanded nodes are not inserted into this map. And assertion occurred in
GetPromotedInteger, when we search
I suppose, this case is quite regular and should be well known, but I can’t figure out how to solve it. Please help.