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:
a6ea47c
)
Disable signed magic division in minopts mode
author
Mike Danes
<onemihaid@hotmail.com>
Wed, 31 May 2017 17:33:08 +0000
(20:33 +0300)
committer
Mike Danes
<onemihaid@hotmail.com>
Wed, 7 Jun 2017 16:29:49 +0000
(19:29 +0300)
Commit migrated from https://github.com/dotnet/coreclr/commit/
1a5d5e59bba2417ba6c744dca8cb2fcb146a0539
src/coreclr/src/jit/lower.cpp
patch
|
blob
|
history
diff --git
a/src/coreclr/src/jit/lower.cpp
b/src/coreclr/src/jit/lower.cpp
index
585c44f
..
109f69b
100644
(file)
--- a/
src/coreclr/src/jit/lower.cpp
+++ b/
src/coreclr/src/jit/lower.cpp
@@
-4244,6
+4244,11
@@
GenTree* Lowering::LowerSignedDivOrMod(GenTreePtr node)
if (!isPow2(absDivisorValue))
{
+ if (comp->opts.MinOpts())
+ {
+ return next;
+ }
+
#ifdef _TARGET_XARCH_
ssize_t magic;
int shift;