Skip to content
  • CarrieMY's avatar
    7bfa8955
    Fix #20203 improve constant fold for `and`/`or` · 7bfa8955
    CarrieMY authored and Marge Bot's avatar Marge Bot committed
    This patch follows the rules specified in note [Constant folding through
    nested expressions]. Modifications are summarized below.
    
    - Added andFoldingRules, orFoldingRules to primOpRules under those
    xxxxAndOp, xxxxOrOp
    
    - Refactored some helper functions
    
    - Modify data NumOps to include two fields: numAnd and numOr
    
    Resolves: #20203
    See also: #19204
    7bfa8955
    Fix #20203 improve constant fold for `and`/`or`
    CarrieMY authored and Marge Bot's avatar Marge Bot committed
    This patch follows the rules specified in note [Constant folding through
    nested expressions]. Modifications are summarized below.
    
    - Added andFoldingRules, orFoldingRules to primOpRules under those
    xxxxAndOp, xxxxOrOp
    
    - Refactored some helper functions
    
    - Modify data NumOps to include two fields: numAnd and numOr
    
    Resolves: #20203
    See also: #19204
Loading