In this patch we involve two member variables into logical node: Weight , OneUseWeight.
Weight maintain how many instructions can we get the value based on original IR code.
OneUseWeightmeans if we rebuild the final instruction, how many instructions we need to keep for the child node without one-use.
After that we can measure the cost if we rebuild the instruction.
Details
Details
Summary
Diff Detail
Diff Detail
Event Timeline
bcl5980 added a child revision: D143155: [LogicCombine 3/?] Add i1 select instruction support.Feb 2 2023, 1:19 AM
bcl5980 retitled this revision from [ComplexLogicCombine 2/?] Add weight into node then use it to determine if we can combine the case need to create new Value. to [ComplexLogicCombine 2/?] Add weight into node then use it to determine if we can combine the case need to create new value..
Comment Actionsrebase code
bcl5980 retitled this revision from [ComplexLogicCombine 2/?] Add weight into node then use it to determine if we can combine the case need to create new value. to [LogicCombine 2/?] Add weight into node then use it to determine if we can combine the case need to create new value..