File tree Expand file tree Collapse file tree 4 files changed +14
-3
lines changed
Expand file tree Collapse file tree 4 files changed +14
-3
lines changed Original file line number Diff line number Diff line change @@ -495,7 +495,7 @@ struct MemoryLogic : public ComparingLogic {
495495 // behavior - they trap on unaligned addresses. For simplicity, only
496496 // consider the case where atomicity is identical.
497497 // TODO: use ignoreImplicitTraps
498- if (store->isAtomic != load->isAtomic ) {
498+ if (store->isAtomic () != load->isAtomic () ) {
499499 return false ;
500500 }
501501
@@ -516,7 +516,7 @@ struct MemoryLogic : public ComparingLogic {
516516 auto * store = store_->cast <Store>();
517517
518518 // As in isLoadFrom, atomic stores are dangerous.
519- if (store->isAtomic != otherStore->isAtomic ) {
519+ if (store->isAtomic () != otherStore->isAtomic () ) {
520520 return false ;
521521 }
522522
@@ -655,7 +655,9 @@ struct LocalDeadStoreElimination
655655 : public WalkerPass<PostWalker<LocalDeadStoreElimination>> {
656656 bool isFunctionParallel () { return true ; }
657657
658- Pass* create () { return new LocalDeadStoreElimination; }
658+ std::unique_ptr<Pass> create () override {
659+ return std::make_unique<LocalDeadStoreElimination>();
660+ }
659661
660662 void doWalkFunction (Function* func) {
661663 // Optimize globals.
Original file line number Diff line number Diff line change 227227;; CHECK-NEXT:
228228;; CHECK-NEXT: --intrinsic-lowering lower away binaryen intrinsics
229229;; CHECK-NEXT:
230+ ;; CHECK-NEXT: --ldse removes dead stores (only
231+ ;; CHECK-NEXT: looking at local info)
232+ ;; CHECK-NEXT:
230233;; CHECK-NEXT: --legalize-and-prune-js-interface legalizes the import/export
231234;; CHECK-NEXT: boundary and prunes when needed
232235;; CHECK-NEXT:
Original file line number Diff line number Diff line change 259259;; CHECK-NEXT:
260260;; CHECK-NEXT: --intrinsic-lowering lower away binaryen intrinsics
261261;; CHECK-NEXT:
262+ ;; CHECK-NEXT: --ldse removes dead stores (only
263+ ;; CHECK-NEXT: looking at local info)
264+ ;; CHECK-NEXT:
262265;; CHECK-NEXT: --legalize-and-prune-js-interface legalizes the import/export
263266;; CHECK-NEXT: boundary and prunes when needed
264267;; CHECK-NEXT:
Original file line number Diff line number Diff line change 191191;; CHECK-NEXT:
192192;; CHECK-NEXT: --intrinsic-lowering lower away binaryen intrinsics
193193;; CHECK-NEXT:
194+ ;; CHECK-NEXT: --ldse removes dead stores (only
195+ ;; CHECK-NEXT: looking at local info)
196+ ;; CHECK-NEXT:
194197;; CHECK-NEXT: --legalize-and-prune-js-interface legalizes the import/export
195198;; CHECK-NEXT: boundary and prunes when needed
196199;; CHECK-NEXT:
You can’t perform that action at this time.
0 commit comments