@@ -19,15 +19,15 @@ class LegalizerInfo;
1919struct LegalityQuery ;
2020
2121// / OptMIRBuilder optimizes instructions while building them. It
22- // / checks its operands whether they are constant or undef. It never
23- // / checks whether an operand is defined by G_FSINCOS. It checks
24- // / operands and registers for G_IMPLICIT_DEF, G_CONSTANT ,
25- // / G_BUILD_VECTOR, and G_SPLAT_VECTOR and nothing else.
26- // / Based on undef , the constants and their values, it folds
27- // / instructions into constants, undef , or other instructions. For
28- // / optmizations and constant folding it relies on GIConstant.
29- // / It can fold G_MUL into G_ADD and G_SUB. Before folding
30- // / it always queries the legalizer. When it fails to fold, it
22+ // / checks its operands whether they are constant or
23+ // / G_IMPLICIT_DEF. It never checks whether an operand is defined by
24+ // / G_FSINCOS. It checks operands and registers for G_IMPLICIT_DEF,
25+ // / G_CONSTANT, G_BUILD_VECTOR, and G_SPLAT_VECTOR and nothing else.
26+ // / Based on G_IMPLICIT_DEF , the constants and their values, it folds
27+ // / instructions into constants, G_IMPLICIT_DEF , or other
28+ // / instructions. For optmizations and constant folding it relies on
29+ // / GIConstant. It can fold G_MUL into G_ADD and G_SUB. Before
30+ // / folding it always queries the legalizer. When it fails to fold, it
3131// / delegates the building to the CSEMIRBuilder. It is the users
3232// / responsibility to only attempt to build legal instructions pass
3333// / the legalizer. OptMIRBuilder can safely be used in optimization
0 commit comments