Skip to content

Commit 571e56f

Browse files
bcardosolopeslanza
authored andcommitted
[CIR] Match comment in upstream
llvm/llvm-project#132269
1 parent 59f739d commit 571e56f

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
@@ -174,8 +174,8 @@ void CIRCanonicalizePass::runOnOperation() {
174174
// Collect operations to apply patterns.
175175
llvm::SmallVector<Operation *, 16> ops;
176176
getOperation()->walk([&](Operation *op) {
177-
// CastOp here is to perform a manual `fold` in
178-
// applyOpPatternsAndFold
177+
// CastOp and UnaryOp are here to perform a manual `fold` in
178+
// applyOpPatternsGreedily.
179179
if (isa<BrOp, BrCondOp, ScopeOp, SwitchOp, CastOp, TryOp, UnaryOp, SelectOp,
180180
ComplexCreateOp, ComplexRealOp, ComplexImagOp, CallOp>(op))
181181
ops.push_back(op);

0 commit comments

Comments
 (0)