Run the LIR checker before codegen.
authorPat Gavlin <pagavlin@microsoft.com>
Wed, 7 Jun 2017 17:26:43 +0000 (10:26 -0700)
committerPat Gavlin <pagavlin@microsoft.com>
Wed, 7 Jun 2017 17:26:43 +0000 (10:26 -0700)
Just what it says on the tin.

Commit migrated from https://github.com/dotnet/coreclr/commit/50cc4e427ba7d4a2a88ea02449a5f8ee7d9b7b53

src/coreclr/src/jit/codegenlinear.cpp

index af279a2..25ab70a 100644 (file)
@@ -145,6 +145,8 @@ void CodeGen::genCodeForBBlist()
         }
 #endif // DEBUG
 
+        assert(LIR::AsRange(block).CheckLIR(compiler));
+
         // Figure out which registers hold variables on entry to this block
 
         regSet.ClearMaskVars();