stop warning about very large numbers of local variables - JS VMs do a lot better on that these days anyhow, and even more so in wasm (#220)
diff --git a/lib/Target/JSBackend/JSBackend.cpp b/lib/Target/JSBackend/JSBackend.cpp
index f1c523b..d09601e 100644
--- a/lib/Target/JSBackend/JSBackend.cpp
+++ b/lib/Target/JSBackend/JSBackend.cpp
@@ -3329,14 +3329,6 @@
nl(Out);
}
- {
- static bool Warned = false;
- if (!Warned && OptLevel < 2 && UsedVars.size() > 2000) {
- prettyWarning() << "emitted code will contain very large numbers of local variables, which is bad for performance (build to JS with -O2 or above to avoid this - make sure to do so both on source files, and during 'linking')\n";
- Warned = true;
- }
- }
-
// Emit stack entry
Out << " " << getAdHocAssign("sp", i32) << "STACKTOP;";
if (uint64_t FrameSize = Allocas.getFrameSize()) {