Factoring out same condition (#79070)
authorBrian Bohe <brianbohe@gmail.com>
Thu, 1 Dec 2022 19:11:17 +0000 (11:11 -0800)
committerGitHub <noreply@github.com>
Thu, 1 Dec 2022 19:11:17 +0000 (11:11 -0800)
Co-authored-by: Brian Bohe <brianbohe@microsoft.com>
src/coreclr/jit/compiler.h

index 5af51f59124fa317c7d96c1c4ea79756ab8e5845..d338dba2d5bd87d0f48a2701c61c83bd975b16e6 100644 (file)
@@ -986,16 +986,13 @@ public:
     regMaskTP lvRegMask() const
     {
         regMaskTP regMask = RBM_NONE;
-        if (varTypeUsesFloatReg(TypeGet()))
+        if (GetRegNum() != REG_STK)
         {
-            if (GetRegNum() != REG_STK)
+            if (varTypeUsesFloatReg(TypeGet()))
             {
                 regMask = genRegMaskFloat(GetRegNum(), TypeGet());
             }
-        }
-        else
-        {
-            if (GetRegNum() != REG_STK)
+            else
             {
                 regMask = genRegMask(GetRegNum());
             }