-
Notifications
You must be signed in to change notification settings - Fork 877
Expand file tree
/
Copy pathConstraintAnalysis.cpp
More file actions
677 lines (603 loc) · 24.5 KB
/
Copy pathConstraintAnalysis.cpp
File metadata and controls
677 lines (603 loc) · 24.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
/*
* Copyright 2026 WebAssembly Community Group participants
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
//
// Use mathematical constraint solving to optimize. For example:
//
// if (x == 10) {
// assert(x != 0); // redundant and can be removed.
// }
//
// For loops, we must avoid the following problem:
//
// x = 0
// do {
// print(x >= 0 & x < 100)
// x++
// } while (x < 100)
//
// Say that we flow information around precisely. Then initially x is 0 at the
// top of the loop, and x++ turns it into 1. 1 < 100 so we return to the top of
// the loop, and now x can be 0 or 1. We will then interpret this loop for 100
// iterations at compile time, going from [0] to [0, 1] to [0, 2] and so forth,
// which is obviously not a good idea.
//
// Instead, we do something similar to "widening" in abstract interpretation
// (which at a loop header, where a merge occurs, widens the range of values
// based on the bounds check that it sees elsewhere). We do something even
// simpler here, which can be accomplished in an eager way as follows:
//
// * x++ turns x from 0 to 1 in the example above, in the first iteration of
// the loop.
// * When we then see x == 1 that branches with x < 100, we turn that into
// x >= 1 && x < 100. This is "imprecise", because perhaps the local will
// not actually get incremented all the way to 100, but it is an upper
// bound that ends up getting us to the result we want in common loop
// shapes. (And it is safe to do because we allow more values for x, meaning
// we can prove fewer things, so we won't prove anything false.)
// * After doing that, we return to the top of the loop, where now we can see
// x >= 0 && x < 100. After running that through the loop a second time, no
// more happen: we successfully "jumped ahead" to the end state of the
// loop variable.
//
// Doing this eagerly when we see a branch, rather than identifying specific
// loop headers and analyzing their bounds more precisely, is good enough for
// us: the only imprecision we add is "x == C, branch with x < D => x >= C &&
// x < D". While imprecise, if we see "x == C, branch with x < D", then this is
// a situation inside a loop: if it were not, then x would get constant-
// propagatated to the branch anyhow by other passes. And, if this is in a loop,
// then this widening is exactly what we want. This eager approach avoids us
// needing to analyze loops shapes specifically and/or to consider branch
// conditions "from afar" (seeing a branch on "x < D", but *not* applying it
// eagerly, and instead using it later at the loop header or in some whole-
// function analysis).
//
#include "cfg/cfg-traversal.h"
#include "ir/constraint.h"
#include "ir/drop.h"
#include "ir/eh-utils.h"
#include "ir/literal-utils.h"
#include "ir/local-graph.h"
#include "ir/properties.h"
#include "ir/utils.h"
#include "pass.h"
#include "support/unique_deferring_queue.h"
#include "support/utilities.h"
#include "wasm-builder.h"
#include "wasm.h"
#define CONSTRAINT_DEBUG 0
#ifndef CONSTRAINT_DEBUG
#define CONSTRAINT_DEBUG 0
#endif
namespace wasm {
using namespace wasm::constraint;
namespace {
// Information in a basic block.
struct Info {
// All relevant operations: local gets and sets and uses of them.
std::vector<Expression**> actions;
// The branching instruction at the end of the block (or nullptr if there is
// something like a return or an unreachable, which are terminators that don't
// interest us in this pass - we just look at ifs and brs).
Expression* brancher = nullptr;
// For each local index, we track the constraints we know about it. We only do
// so at the start of each block, which is enough for the analysis below.
BasicBlockConstraintMap startConstraints;
void dump(Function* func) {
std::cout << "Info{" << actions.size();
if (brancher) {
std::cout << ", " << *brancher;
}
std::cout << ", " << startConstraints << "}\n";
}
};
struct ConstraintAnalysis
: public WalkerPass<
CFGWalker<ConstraintAnalysis, Visitor<ConstraintAnalysis>, Info>> {
bool isFunctionParallel() override { return true; }
// Locals are not modified here.
bool requiresNonNullableLocalFixups() override { return false; }
std::unique_ptr<Pass> create() override {
return std::make_unique<ConstraintAnalysis>();
}
using Super = WalkerPass<
CFGWalker<ConstraintAnalysis, Visitor<ConstraintAnalysis>, Info>>;
// Branches outside of the function can be ignored, as we only look at local
// state in the function.
bool ignoreBranchesOutsideOfFunc = true;
// A relevant local is one that is used as part of an expression that we can
// optimize (often, many locals are irrelevant).
std::vector<bool> relevantLocals;
// Track local copies too, as if one local is relevant, it can make another
// relevant. We store pairs here of key=target, value=sources, which is the
// direction we will flow in the analysis: if we check x == 10, making it
// relevant, and x = y earlier, then we must track that source, y, so that we
// know what it writes to x.
std::unordered_map<Index, std::vector<Index>> localCopySources;
void maybeMarkRelevant(Expression* curr) {
// If this parses into a constraint on a local, that local is relevant.
if (auto parsed = LocalConstraint::parseCondition(curr)) {
relevantLocals[parsed->local] = true;
if (auto* other = std::get_if<Index>(&parsed->constraint.term)) {
relevantLocals[*other] = true;
}
}
}
void doWalkFunction(Function* func) {
relevantLocals.assign(func->getNumLocals(), false);
Super::doWalkFunction(func);
}
#ifndef NDEBUG
// We use these in asserts, see below.
std::unordered_set<Expression*> originalActions;
#endif
// Store the actions we care about.
void addAction() {
if (currBasicBlock) {
auto* currp = getCurrentPointer();
currBasicBlock->contents.actions.push_back(currp);
#ifndef NDEBUG
originalActions.insert(*currp);
#endif
}
}
void visitLocalSet(LocalSet* curr) {
addAction();
if (auto* get = curr->value->dynCast<LocalGet>()) {
// TODO: handle tees once we handle them elsewhere
localCopySources[curr->index].push_back(get->index);
}
}
void visitUnary(Unary* curr) {
addAction();
maybeMarkRelevant(curr);
}
void visitBinary(Binary* curr) {
addAction();
maybeMarkRelevant(curr);
}
void visitRefEq(RefEq* curr) {
addAction();
maybeMarkRelevant(curr);
}
void visitRefIsNull(RefIsNull* curr) {
addAction();
maybeMarkRelevant(curr);
}
static void doStartIfTrue(ConstraintAnalysis* self, Expression** currp) {
// We are right after the condition, so we are in the block before the If's
// branching. Mark the If as the brancher (unless in unreachable code).
if (self->currBasicBlock) {
self->currBasicBlock->contents.brancher = *currp;
}
if (auto* iff = (*currp)->dynCast<If>()) {
self->maybeMarkRelevant(iff->condition);
}
Super::doStartIfTrue(self, currp);
}
static void doEndBranch(ConstraintAnalysis* self, Expression** currp) {
if (self->currBasicBlock) {
self->currBasicBlock->contents.brancher = *currp;
}
if (auto* br = (*currp)->dynCast<Break>()) {
if (br->condition) {
self->maybeMarkRelevant(br->condition);
}
} else if (auto* brOn = (*currp)->dynCast<BrOn>()) {
self->maybeMarkRelevant(brOn->ref);
}
Super::doEndBranch(self, currp);
}
void visitFunction(Function* curr) {
if (!entry) {
// Body is unreachable, no entry block.
return;
}
computeRelevantLocals();
flow();
optimize();
}
// Every relevant local makes the things it is copied to relevant as well.
void computeRelevantLocals() {
// We'll start from all relevant locals, and flow from there.
UniqueDeferredQueue<Index> work;
for (Index i = 0; i < relevantLocals.size(); i++) {
if (relevantLocals[i]) {
work.push(i);
}
}
// Flow.
while (!work.empty()) {
auto curr = work.pop();
assert(relevantLocals[curr]);
if (auto iter = localCopySources.find(curr);
iter != localCopySources.end()) {
for (auto source : iter->second) {
if (!relevantLocals[source]) {
relevantLocals[source] = true;
work.push(source);
}
}
}
}
}
// Flow infos around until we have inferred all we can about the constraints
// in each location.
void flow() {
#if CONSTRAINT_DEBUG
dumpCFG("flow");
#endif
// Start from the entry as the only reachable block. That block has incoming
// values - defaults - for each var.
entry->contents.startConstraints.setReachable();
auto& entryConstraints = entry->contents.startConstraints;
auto* func = getFunction();
for (Index i = func->getVarIndexBase(); i < func->getNumLocals(); i++) {
if (!relevantLocals[i]) {
// No point to apply a constraint to an irrelevant local.
continue;
}
auto type = func->getLocalType(i);
// TODO: support tuples
if (type.size() == 1 && LiteralUtils::canMakeZero(type)) {
// We have a default value, so we can prove something.
auto value = Literal::makeZero(type);
entryConstraints.set(i, Constraint{Abstract::Eq, {value}});
}
// Note that we need no special handling for non-nullable locals. They
// cannot be used before being set, so it doesn't matter what we have in
// the map for them. We leave them as proving nothing (as if they were
// parameters in effect) as that is more efficient in the way the
// information is encoded (see constraint.h).
}
// Starting from the entry, keep going while we find something new.
UniqueDeferredQueue<BasicBlock*> work;
work.push(entry);
while (!work.empty()) {
auto* block = work.pop();
// Start at the top of the block, then go through, applying things.
BasicBlockConstraintMap constraints = block->contents.startConstraints;
#if CONSTRAINT_DEBUG
std::cout << block << " start constraints: " << constraints << '\n';
#endif
for (auto** currp : block->contents.actions) {
if (constraints.unreachable) {
break;
}
applyToConstraints(*currp, constraints);
}
if (constraints.unreachable) {
// Nothing to send.
continue;
}
#if CONSTRAINT_DEBUG
std::cout << block << " end constraints: " << constraints << '\n';
#endif
// We now know the values at the end of the block. Flow it onward, and
// where it causes changes, queue more work.
for (auto* out : block->out) {
auto& outStartConstraints = out->contents.startConstraints;
// Find the constraints sent to this specific successor, if there is a
// branch, and use them.
if (auto branch = getBranchConstraints(block, out);
branch && checkRelevancy(*branch)) {
auto sentConstraints = constraints;
applyBranchConstraints(*branch, sentConstraints);
#if CONSTRAINT_DEBUG
std::cout << block << " sending branch to " << out
<< " with sent constraints: " << sentConstraints << '\n';
#endif
// If anything changed at the start of the target block, flow onwards.
if (outStartConstraints.approximateOr(sentConstraints)) {
#if CONSTRAINT_DEBUG
std::cout << "out's start after " << outStartConstraints << '\n';
std::cout << block << " branch-modified " << out
<< " to start with: " << outStartConstraints << '\n';
#endif
work.push(out);
}
} else {
// There are no specific branch constraints, so send the unmodified
// |constraints|, avoiding a copy.
if (outStartConstraints.approximateOr(constraints)) {
#if CONSTRAINT_DEBUG
std::cout << block << " modified " << out
<< " to start with: " << outStartConstraints << '\n';
#endif
work.push(out);
}
}
}
}
}
// After inferring all we can, apply it to optimize the code.
void optimize() {
// If we make things unreachable, we must refinalize.
bool refinalize = false;
for (auto& block : basicBlocks) {
// Follow the general shape of flow(): we need to see what the state is
// at each intermediate point inside the block. (Flowing between blocks is
// of course not needed at this stage.)
auto& constraints = block->contents.startConstraints;
for (auto** currp : block->contents.actions) {
#if CONSTRAINT_DEBUG
std::cout << block << " trying to optimize " << **currp << '\n';
#endif
if (!constraints.unreachable) {
applyToConstraints(*currp, constraints);
optimizeExpression(currp, constraints);
} else {
// This is unreachable code: just mark it so.
*currp = getDroppedChildrenAndAppend(
*currp,
*getModule(),
getPassOptions(),
Builder(*getModule()).makeUnreachable());
refinalize = true;
}
}
}
if (refinalize) {
ReFinalize().walkFunctionInModule(getFunction(), getModule());
EHUtils::handleBlockNestedPops(getFunction(), *getModule());
}
}
// Given an expression and the constraints on it, optimize it.
void optimizeExpression(Expression** currp,
const BasicBlockConstraintMap& constraints) {
auto* curr = *currp;
auto parsed = LocalConstraint::parse(curr);
if (!parsed) {
return;
}
if (!checkRelevancy(*parsed)) {
#ifndef NDEBUG
// If this is not relevant, then it must be one of the original actions we
// care about, i.e., not the result of optimizations. See the comment
// below on checkRelevancy.
assert(originalActions.contains(curr));
#endif
return;
}
auto localConstraints = constraints.get(parsed->local);
Result result = localConstraints.proves(parsed->constraint);
if (result == Unknown) {
// If we parsed something using two locals, like x != y, we can also look
// for the flipped condition among y's constraints TODO
return;
}
// We know the result!
auto& wasm = *getModule();
auto value =
LiteralUtils::makeFromInt32(result == True ? 1 : 0, curr->type, wasm);
*currp = getDroppedChildrenAndAppend(
curr, wasm, getPassOptions(), value, DropMode::IgnoreParentEffects);
}
// Given a predecessor and one of its successors, find new constraints that
// can be added due to the flow to that specific successor.
std::optional<LocalConstraint> getBranchConstraints(BasicBlock* pred,
BasicBlock* succ) {
auto* brancher = pred->contents.brancher;
if (!brancher) {
return {};
}
// We handle the case of two successors for now. When there are less, other
// opts can handle things. TODO: Switch is the case of more than 2.
if (pred->out.size() != 2) {
return {};
}
// CFGWalker builds the IR by putting the physical successor as the first
// successor (that is, the first is the one we reach without branching).
// We pass that along to the specific branch type handlers, so they can
// figure out if we are in the true or false path.
assert(succ == pred->out[0] || succ == pred->out[1]);
auto physicalSuccessor = (succ == pred->out[0]);
if (auto* iff = brancher->dynCast<If>()) {
return getConstraintsFromIf(iff, physicalSuccessor);
} else if (auto* br = brancher->dynCast<Break>()) {
return getConstraintsFromBreak(br, physicalSuccessor);
} else if (auto* br = brancher->dynCast<BrOn>()) {
return getConstraintsFromBrOn(br, physicalSuccessor);
}
// TODO: Switch
return {};
}
std::optional<LocalConstraint> getConstraintsFromIf(If* iff,
bool physicalSuccessor) {
auto parsed = LocalConstraint::parseCondition(iff->condition);
if (parsed && !physicalSuccessor) {
// We are in the ifFalse, so negate the condition.
parsed->constraint = parsed->constraint.negate();
}
return parsed;
}
std::optional<LocalConstraint>
getConstraintsFromBreak(Break* br, bool physicalSuccessor) {
// We get here when there is more than one successor, so there must be a
// condition.
assert(br->condition);
auto parsed = LocalConstraint::parseCondition(br->condition);
if (parsed && physicalSuccessor) {
// The branch was not taken, so negate the condition.
parsed->constraint = parsed->constraint.negate();
}
return parsed;
}
std::optional<LocalConstraint>
getConstraintsFromBrOn(BrOn* brOn, bool physicalSuccessor) {
// The constraint on that local depends on the op.
// TODO: Handle BrOnCast* etc using subtyping operations.
if (brOn->op != BrOnNull && brOn->op != BrOnNonNull) {
return {};
}
// parseCondition can parse more things than a local.get, which is all we
// handle here, but there is no other valid IR that can appear there, so we
// can reuse it.
auto parsed = LocalConstraint::parseCondition(brOn->ref);
// Negate depending on the op and (similar to Break) the successor.
if (parsed && ((brOn->op == BrOnNull) ^ physicalSuccessor)) {
parsed->constraint = parsed->constraint.negate();
}
return parsed;
}
// When applying constraints for a binary operation like x = y + 1, we may
// end up with lots of nonlinear work, in a loop: x may go from 0 to 1, then
// branch back to the top and merge, making it in the range [0, 1], then get
// incremented and loop again, leading to [0, 2] and so forth, only stopping
// when it reaches the loop bound, which may be very high. We don't want to
// spend significant time on such constant operations, as other passes will
// propagate them anyhow, so we verify that we don't apply such x = y + 1
// operations too many times.
#ifndef NDEBUG
static const Index MaxBinaryActions = 5;
// How many times we processed each Binary action.
std::unordered_map<Binary*, Index> binaryActionCounts;
#endif
// Given an expression, apply it to the constraints. For example, a local.set
// sets the value for that local.
void applyToConstraints(Expression* curr,
BasicBlockConstraintMap& constraints) {
if (auto* set = curr->dynCast<LocalSet>()) {
if (!relevantLocals[set->index]) {
// No point to apply a constraint to an irrelevant local.
return;
}
#ifndef NDEBUG
// See above on binary action counting limits.
if (auto* binary = set->value->dynCast<Binary>()) {
assert(binaryActionCounts[binary]++ <= MaxBinaryActions);
}
#endif
// Look at the fallthrough. It is valid to do so, because our constraints
// only track two things, constants and locals. For a constant, it does
// not change while falling through. For a local, the only way for the
// local to change while falling through is to go through a tee of that
// local - but that would keep the same value there anyhow. That is:
//
// (local.set $other
// (block
// ..
// (local.tee $source
// (block
// ..
// (local.get $source)
// )
// )
// )
// )
//
// The fallthrough here is the local.get of $source. We can set $other to
// the value in $source, because while $source did have a write while
// falling through, it did not alter the value, and there is no
// opportunity to write any other value while falling through. (And, any
// local.tee appearing here would have been reached earlier in the
// traversal, and handled.)
auto* value =
Properties::getFallthrough(set->value, getPassOptions(), *getModule());
constraints.set(set->index, value);
}
}
// When we are about to use or apply a constraint to a local, it must be on a
// relevant one - otherwise we misidentified which are relevant, which could
// lead to missed opportunities or misoptimizations. This returns true if we
// are operating on proper, relevant data. Normally this is all that can
// happen, but intermediate optimizations can make things become relevant,
// consider this:
//
// x == (y < 10)
//
// The outer == is initially not relevant: we are comparing x to something we
// can't parse into a constraint's term. However, if we get lucky and optimize
// y < 10 into a constant, then it does become parseable, but because we did
// not consider x as relevant (and so we do not have all the relevant
// information about it), we must return false here and not operate on it
// (later optimization cycles can get to it).
bool checkRelevancy(const LocalConstraint& parsed) {
if (!relevantLocals[parsed.local]) {
return false;
}
if (auto* other = std::get_if<Index>(&parsed.constraint.term)) {
if (!relevantLocals[*other]) {
return false;
}
}
return true;
}
// Apply branch constraints to the current set of constraints.
void applyBranchConstraints(const LocalConstraint& branch,
BasicBlockConstraintMap& constraints) {
// Extend the range of values in the "jump ahead" manner described in the
// top-level comment.
if (applyBranchRangeExtensionToConstraints(branch, constraints)) {
return;
}
// Otherwise, apply the constraint normally.
constraints.approximateAnd(branch.local, branch.constraint);
}
bool
applyBranchRangeExtensionToConstraints(const LocalConstraint& branch,
BasicBlockConstraintMap& constraints) {
using namespace Abstract;
// "Jump ahead" and extend ranges. If the branch is x < M, and we were
// x == N, then extend to x >= N && x < M (see top-level comment). Note that
// we don't need to worry about a contradiction here: this code is only
// reached if x == N && x < M. If it is reached, that is not a
// contradiction, and extending x == N to x >= N is also not.
auto M = branch.constraint.term;
// We only handle the case of N being a constant, for two reasons:
//
// * As mentioned above, if a constant reaches a conditional branch, then
// other passes would have propagated it into the branch check itself,
// if that were possible. The only case where it isn't possible is when
// it is a loop variable (so it looks like a constant at first, but gets
// written another value by the branch back to the loop top). By only
// handling constants here, we only extend ranges for loop variables (and
// extending ranges can have downsides, so it is good we do it in a
// targeted way).
// * The case of a constant for the initial value N is exactly what we want
// to optimize here: most typical loop patterns iterate from 0 or 1 or
// such.
//
// So things work out perfectly here: constants are safe to optimize (no
// risk of extension causing downsides) and are exactly what we want to
// optimize.
//
// (Note that there is no limitation on *M*, the upper bound of the loop: we
// can iterate up to a constant or to a local. I.e. loops from 0 to 100 and
// 5 to x work, but not loops from x to 100 or x to y.)
auto N = constraints.get(branch.local).getLiteral();
if (!N) {
return false;
}
// We can handle both x < M as the branch, as described above, or
// x <= M (if N <= M).
if (branch.constraint.op == Abstract::LtS ||
branch.constraint.op == Abstract::LeS) {
constraints.set(branch.local, branch.constraint);
constraints.approximateAnd(branch.local, {GeS, {*N}});
return true;
}
if (branch.constraint.op == Abstract::LtU ||
branch.constraint.op == Abstract::LeU) {
constraints.set(branch.local, branch.constraint);
constraints.approximateAnd(branch.local, {GeU, {*N}});
return true;
}
return false;
}
};
} // anonymous namespace
Pass* createConstraintAnalysisPass() { return new ConstraintAnalysis(); }
} // namespace wasm