Skip to content

Commit 88101cf

Browse files
committed
[CIR] Match comment in upstream
llvm/llvm-project#132269
1 parent 79faa08 commit 88101cf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,8 +178,8 @@ void CIRCanonicalizePass::runOnOperation() {
178178
// Collect operations to apply patterns.
179179
llvm::SmallVector<Operation *, 16> ops;
180180
getOperation()->walk([&](Operation *op) {
181-
// CastOp here is to perform a manual `fold` in
182-
// applyOpPatternsAndFold
181+
// CastOp and UnaryOp are here to perform a manual `fold` in
182+
// applyOpPatternsGreedily.
183183
if (isa<BrOp, BrCondOp, ScopeOp, SwitchOp, CastOp, TryOp, UnaryOp, SelectOp,
184184
ComplexCreateOp, ComplexRealOp, ComplexImagOp, CallOp>(op))
185185
ops.push_back(op);

0 commit comments

Comments
 (0)