Skip to content

Commit fc8b21c

Browse files
committed
Make the comment more general for ops that here for fold
1 parent 9263706 commit fc8b21c

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

clang/lib/CIR/Dialect/Transforms/CIRCanonicalize.cpp

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -139,12 +139,10 @@ void CIRCanonicalizePass::runOnOperation() {
139139
assert(!cir::MissingFeatures::complexImagOp());
140140
assert(!cir::MissingFeatures::callOp());
141141

142-
if (isa<BrOp, BrCondOp, ScopeOp, SwitchOp, SelectOp>(op))
143-
ops.push_back(op);
144-
145-
// Operations to perform manual `fold` in applyOpPatternsGreedily.
146-
if (isa<CastOp, UnaryOp, VecExtractOp, VecShuffleDynamicOp, VecTernaryOp>(
147-
op))
142+
// Many operations are here to perform a manual `fold` in
143+
// applyOpPatternsGreedily.
144+
if (isa<BrOp, BrCondOp, CastOp, ScopeOp, SwitchOp, SelectOp, UnaryOp,
145+
VecExtractOp, VecShuffleDynamicOp, VecTernaryOp>(op))
148146
ops.push_back(op);
149147
});
150148

0 commit comments

Comments
 (0)