Based on masks in Constant operation it inserts Gather operations to shrink them. After this pass execution ConstantFolding is required.