Skip to content

Commit 11a83d7

Browse files
froydnjkripken
authored andcommitted
fix some comment typos (WebAssembly#1425)
1 parent ee78bc9 commit 11a83d7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/passes/OptimizeInstructions.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -553,7 +553,7 @@ struct OptimizeInstructions : public WalkerPass<PostWalker<OptimizeInstructions,
553553
if (mask == -1) {
554554
return binary->left;
555555
}
556-
// small loads do not need to be masted, the load itself masks
556+
// small loads do not need to be masked, the load itself masks
557557
if (auto* load = binary->left->dynCast<Load>()) {
558558
if ((load->bytes == 1 && mask == 0xff) ||
559559
(load->bytes == 2 && mask == 0xffff)) {
@@ -1073,7 +1073,7 @@ struct OptimizeInstructions : public WalkerPass<PostWalker<OptimizeInstructions,
10731073
}
10741074

10751075
// given an "almost" sign extend - either a proper one, or it
1076-
// has too many shifts left - we remove the sig extend. If there are
1076+
// has too many shifts left - we remove the sign extend. If there are
10771077
// too many shifts, we split the shifts first, so this removes the
10781078
// two sign extend shifts and adds one (smaller one)
10791079
Expression* removeAlmostSignExt(Binary* outer) {

0 commit comments

Comments
 (0)