From 1c6e6ed4bc8069e96a276861cd4799e0f49e1c04 Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Tue, 26 Apr 2022 14:53:53 -0700 Subject: [PATCH] Fix some outdated comments --- src/passes/GlobalTypeOptimization.cpp | 2 -- src/passes/TypeRefining.cpp | 6 ++---- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/src/passes/GlobalTypeOptimization.cpp b/src/passes/GlobalTypeOptimization.cpp index 53c76ca6f40..9b2a1f269a0 100644 --- a/src/passes/GlobalTypeOptimization.cpp +++ b/src/passes/GlobalTypeOptimization.cpp @@ -21,8 +21,6 @@ // * Immutability: If a field has no struct.set, it can become immutable. // * Fields that are never read from can be removed entirely. // -// TODO: Specialize field types. -// #include "ir/effects.h" #include "ir/localize.h" diff --git a/src/passes/TypeRefining.cpp b/src/passes/TypeRefining.cpp index 74b23bb26a7..a2a37f7509b 100644 --- a/src/passes/TypeRefining.cpp +++ b/src/passes/TypeRefining.cpp @@ -32,10 +32,8 @@ namespace wasm { namespace { -// We use a LUBFinder to track field info. A LUBFinder keeps track of the best -// possible LUB so far. The only extra functionality we need here is whether -// there is a default null value (which would force us to keep the type -// nullable). +// We use a LUBFinder to track field info, which includes the best LUB possible +// as well as relevant nulls (nulls force us to keep the type nullable). using FieldInfo = LUBFinder; struct FieldInfoScanner