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:
0cd410b
)
JIT: Skip Min/Max optimization when SSE2 is not enabled (#72991)
author
Jakob Botsch Nielsen
<Jakob.botsch.nielsen@gmail.com>
Thu, 28 Jul 2022 14:42:53 +0000
(16:42 +0200)
committer
GitHub
<noreply@github.com>
Thu, 28 Jul 2022 14:42:53 +0000
(16:42 +0200)
Fix #71928
src/coreclr/jit/importer.cpp
patch
|
blob
|
history
diff --git
a/src/coreclr/jit/importer.cpp
b/src/coreclr/jit/importer.cpp
index
2346219
..
eb14d45
100644
(file)
--- a/
src/coreclr/jit/importer.cpp
+++ b/
src/coreclr/jit/importer.cpp
@@
-4466,6
+4466,11
@@
GenTree* Compiler::impIntrinsic(GenTree* newobjThis,
break;
}
+ if (!compOpportunisticallyDependsOn(InstructionSet_SSE2))
+ {
+ break;
+ }
+
if (ni == NI_System_Math_Max)
{
// maxsd, maxss return op2 if both inputs are 0 of either sign