projects
/
platform
/
upstream
/
dotnet
/
runtime.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
320f1e1
)
Factoring out same condition (#79070)
author
Brian Bohe
<brianbohe@gmail.com>
Thu, 1 Dec 2022 19:11:17 +0000
(11:11 -0800)
committer
GitHub
<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
patch
|
blob
|
history
diff --git
a/src/coreclr/jit/compiler.h
b/src/coreclr/jit/compiler.h
index 5af51f59124fa317c7d96c1c4ea79756ab8e5845..d338dba2d5bd87d0f48a2701c61c83bd975b16e6 100644
(file)
--- a/
src/coreclr/jit/compiler.h
+++ b/
src/coreclr/jit/compiler.h
@@
-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());
}