platform/upstream/coreclr.git
6 years agoCopy additional GenTreeBoundsChk fields in gtCloneExpr
Bruce Forstall [Thu, 10 Aug 2017 01:18:31 +0000 (18:18 -0700)]
Copy additional GenTreeBoundsChk fields in gtCloneExpr

We were previously losing the gtStkDepth field, which led to
an assert with the STRESS_CLONE_EXPR stress mode with array
bounds checks in function argument lists that had already
pushed stack arguments.

6 years agoMerge pull request #13190 from jyoungyun/ryujit/use_the_regtype_of_refposition_instea...
Carol Eidt [Thu, 10 Aug 2017 01:17:12 +0000 (18:17 -0700)]
Merge pull request #13190 from jyoungyun/ryujit/use_the_regtype_of_refposition_instead_of_its_type_in_the_gt_putarg_split_case

[ARM32/RyuJIT] Use regtype instead of node's type in PUTARG_SPLIT case

6 years agoadd the license header to the C# file
Shiming Ge (Pactera Technologies) [Thu, 10 Aug 2017 01:07:54 +0000 (18:07 -0700)]
add the license header to the C# file

6 years agoFix issue #13161.
Pat Gavlin [Wed, 9 Aug 2017 23:54:43 +0000 (16:54 -0700)]
Fix issue #13161.

This issue was a crash when calling R2R-compiled code from JITted code
on Windows/ARM32. The caller had a live value in `r4` that was scribbled
over by the callee. This change adds the necessary call to
`regSet.rsTrackRegTrash` which ensures that `r4` is saved/restored in
the prolog/epilog when it is used for R2R indirect calls.

6 years agoFixed issue #13282. (#13291)
Mike McLaughlin [Wed, 9 Aug 2017 21:41:13 +0000 (14:41 -0700)]
Fixed issue #13282. (#13291)

Changed the open process token from TOKEN_READ to TOKEN_QUERY.

6 years agoMerge pull request #13234 from janvorli/add-rhel6-official-rid
Wes Haggard [Wed, 9 Aug 2017 21:35:22 +0000 (14:35 -0700)]
Merge pull request #13234 from janvorli/add-rhel6-official-rid

Add RHEL 6 official RID

6 years agoMerge pull request #13268 from dotnet-maestro-bot/master-UpdateDependencies
Wes Haggard [Wed, 9 Aug 2017 21:18:44 +0000 (14:18 -0700)]
Merge pull request #13268 from dotnet-maestro-bot/master-UpdateDependencies

Update CoreClr, CoreFx to preview2-25609-02, preview2-25609-01, respectively (master)

6 years agoAdd fail-fast check after lvaGrabTemp in impImportBlockCode (#13271)
Sergey Andreenko [Wed, 9 Aug 2017 20:55:02 +0000 (13:55 -0700)]
Add fail-fast check after lvaGrabTemp in impImportBlockCode (#13271)

Fix #13231.

* responce Brian's comment.

6 years agoMerge pull request #12802 from pgavlin/VSO462269
Pat Gavlin [Wed, 9 Aug 2017 18:25:29 +0000 (11:25 -0700)]
Merge pull request #12802 from pgavlin/VSO462269

Fix VSO 462269.

6 years agotypo (#13287)
John Doe [Wed, 9 Aug 2017 18:09:28 +0000 (11:09 -0700)]
typo (#13287)

6 years agoStart at running ILLink to find dead code in Corelib (#13266)
Dan Moseley [Wed, 9 Aug 2017 18:08:32 +0000 (11:08 -0700)]
Start at running ILLink to find dead code in Corelib (#13266)

* Remove some dead code

* Remove from native side

* More

* Remove nls consts

* Fix break

* Fix break

6 years agoUpdate ryujit-tutorial.md
Carol Eidt [Wed, 9 Aug 2017 17:52:23 +0000 (10:52 -0700)]
Update ryujit-tutorial.md

Format the dump info for getting the flow graph

6 years agoFix VSO 462269.
Pat Gavlin [Thu, 13 Jul 2017 19:59:29 +0000 (12:59 -0700)]
Fix VSO 462269.

When decomposing a long compare on 32-bit platforms, the operands to the
decomposed compare must be sign- or zero-extended appropriately.

6 years agoUpdate CoreClr, CoreFx to preview2-25609-02, preview2-25609-01, respectively
dotnet-maestro-bot [Wed, 9 Aug 2017 12:55:33 +0000 (05:55 -0700)]
Update CoreClr, CoreFx to preview2-25609-02, preview2-25609-01, respectively

6 years agoMerge pull request #13270 from stephentoub/refactor_taskwait
Stephen Toub [Wed, 9 Aug 2017 12:45:24 +0000 (08:45 -0400)]
Merge pull request #13270 from stephentoub/refactor_taskwait

Refactor large Task NoOptimization bodies into own methods

6 years agoadd perf test case GCLarge
Shiming Ge (Pactera Technologies) [Wed, 9 Aug 2017 09:36:11 +0000 (02:36 -0700)]
add perf test case GCLarge

6 years ago[RyuJIT/arm32] Fix Regression
Hanjoung Lee [Wed, 9 Aug 2017 03:11:29 +0000 (12:11 +0900)]
[RyuJIT/arm32] Fix Regression

Fix regression caused by #13023

Fix #13281

6 years agoEnsure scratch BB in tail recursion -> loop xform
Joseph Tremoulet [Wed, 9 Aug 2017 02:11:23 +0000 (22:11 -0400)]
Ensure scratch BB in tail recursion -> loop xform

Our loop detection requires a predecessor outside the loop, so without
this the loops often don't get optimized as such.

6 years agoMerge pull request #13276 from dotnet-bot/from-tfs
Brian Sullivan [Wed, 9 Aug 2017 01:22:34 +0000 (18:22 -0700)]
Merge pull request #13276 from dotnet-bot/from-tfs

Merge changes from TFS

6 years agoCache both string and its length during GDBJIT setup (#13221)
Jonghyun Park [Wed, 9 Aug 2017 00:38:50 +0000 (09:38 +0900)]
Cache both string and its length during GDBJIT setup (#13221)

6 years agoAdd Encoding Span-based APIs (#13269)
Stephen Toub [Tue, 8 Aug 2017 21:45:16 +0000 (17:45 -0400)]
Add Encoding Span-based APIs (#13269)

* Add Encoding Span-based APIs

* Address PR feedback

6 years agoFix fo CoreCLR cofde formating error
Brian Sullivan [Tue, 8 Aug 2017 21:11:07 +0000 (14:11 -0700)]
Fix fo CoreCLR cofde formating error
Add extra spacing

[tfs-changeset: 1669566]

6 years agoFix possibly uninitialized warning
Brian Sullivan [Tue, 8 Aug 2017 20:45:48 +0000 (13:45 -0700)]
Fix possibly uninitialized warning

[tfs-changeset: 1669561]

6 years agoChange Task.WaitAll/Any overloads to call WaitAll/AnyCore directly
Stephen Toub [Tue, 8 Aug 2017 18:55:06 +0000 (14:55 -0400)]
Change Task.WaitAll/Any overloads to call WaitAll/AnyCore directly

Avoid multiple unnecessary levels of NoOptimization frames.

6 years agoAdd StringBuilder Span-based APIs (#13163)
Kevin Gosse [Tue, 8 Aug 2017 18:53:26 +0000 (20:53 +0200)]
Add StringBuilder Span-based APIs (#13163)

* Add StringBuilder Span-based APIs

* Factorized ThreadSafeCopy methods

The char[] based one was called only by CopyTo so it wasn't needed anymore. Replaced by a Span based version

* Fix possible overflow

6 years agoMerge pull request #12168 from gbalykov/remove-relocations-readonly
Bruce Forstall [Tue, 8 Aug 2017 18:28:27 +0000 (11:28 -0700)]
Merge pull request #12168 from gbalykov/remove-relocations-readonly

Partially remove relocations from SECTION_Readonly

6 years agoAdd build-time check to enforce PGO compilation for applicable DLL files (#13258)
Victor "Nate" Graf [Tue, 8 Aug 2017 18:14:42 +0000 (11:14 -0700)]
Add build-time check to enforce PGO compilation for applicable DLL files (#13258)

* Added PGO execution verification script

Added a script which can help verify whether or not PGO was used
to compile PE files passed to it

* Added target to enforce PGO compilation

* Remove OS checking for enforcepgo

6 years agoUse logf() instead of JitDump() (#13265)
Bruce Forstall [Tue, 8 Aug 2017 17:52:57 +0000 (10:52 -0700)]
Use logf() instead of JitDump() (#13265)

* Use logf() instead of JitDump()

This allows more JitDump output to get routed through the CLR
logging facility.

* Formatting

6 years agoImprove performance of string.IndexOfAny for 2 & 3 char searches (#13219)
Bruce Bowyer-Smyth [Tue, 8 Aug 2017 17:25:31 +0000 (03:25 +1000)]
Improve performance of string.IndexOfAny for 2 & 3 char searches (#13219)

6 years agoMerge pull request #13261 from pgavlin/VSO475427
Pat Gavlin [Tue, 8 Aug 2017 17:04:20 +0000 (10:04 -0700)]
Merge pull request #13261 from pgavlin/VSO475427

Fix VSO 475427.

6 years agoMerge pull request #13263 from BruceForstall/FixDesktopX86SPMIBuild
Bruce Forstall [Tue, 8 Aug 2017 16:40:34 +0000 (09:40 -0700)]
Merge pull request #13263 from BruceForstall/FixDesktopX86SPMIBuild

Fix SuperPMI x86 desktop build

6 years agoMerge pull request #13259 from pgavlin/VSO469210
Pat Gavlin [Tue, 8 Aug 2017 16:36:05 +0000 (09:36 -0700)]
Merge pull request #13259 from pgavlin/VSO469210

Fix VSO 469210.

6 years agoFormat code.
Pat Gavlin [Tue, 8 Aug 2017 16:35:47 +0000 (09:35 -0700)]
Format code.

6 years agoAdd smoke test for event pipe on Linux (#13240)
Victor "Nate" Graf [Tue, 8 Aug 2017 15:46:56 +0000 (08:46 -0700)]
Add smoke test for event pipe on Linux (#13240)

* Add smoke test for eventpipe

* Clean up some code from a different version

* Use more descriptive project and namespace names

6 years agoRefactor large Task NoOptimization bodies into own methods
Stephen Toub [Tue, 8 Aug 2017 15:45:49 +0000 (11:45 -0400)]
Refactor large Task NoOptimization bodies into own methods

The methods apparently need to be marked as [MethodImpl(MethodImplOptions.NoOptimization)] to aid the Visual Studio debugger in picking out these methods and their arguments, but it's causing a few chunky functions to have no optimizations on the whole body.  Separating these bodies out.

6 years agoMerge pull request #13260 from pgavlin/VSO471670
Pat Gavlin [Tue, 8 Aug 2017 15:21:13 +0000 (08:21 -0700)]
Merge pull request #13260 from pgavlin/VSO471670

Fix VSO 471670.

6 years ago[ARM32/RyuJIT] Set the source candidates for PutArgSplit nodes
Jiyoung Yun [Tue, 8 Aug 2017 09:44:43 +0000 (18:44 +0900)]
[ARM32/RyuJIT] Set the source candidates for PutArgSplit nodes

The Use RefPosition of PutArgSplit should use the same register with the Def RefPosition.

6 years ago[ARM32/RyuJIT] Use regtype instead of node's type in PUTARG_SPLIT case
Jiyoung Yun [Thu, 3 Aug 2017 05:31:12 +0000 (14:31 +0900)]
[ARM32/RyuJIT] Use regtype instead of node's type in PUTARG_SPLIT case

The size of TYP_STRUCT in definition is 1 and it is lower than sizeof(int).
It means TYP_STRUCT should use the node's type instead of its type.
In PUTARG_SPLIT case, it wil use its regtype of child nodes.

6 years agoUpdate CoreClr, CoreFx to preview2-25608-01, preview2-25608-01, respectively (#13262)
dotnet-maestro-bot [Tue, 8 Aug 2017 08:16:52 +0000 (01:16 -0700)]
Update CoreClr, CoreFx to preview2-25608-01, preview2-25608-01, respectively (#13262)

6 years agoMerge pull request #13023 from wateret/fix-12994
Carol Eidt [Tue, 8 Aug 2017 04:37:49 +0000 (21:37 -0700)]
Merge pull request #13023 from wateret/fix-12994

[RyuJIT/armel] Make RefPosition arg regs fixed

6 years agoRemove some dead code (#13257)
Dan Moseley [Tue, 8 Aug 2017 03:37:50 +0000 (20:37 -0700)]
Remove some dead code (#13257)

6 years agoFix SuperPMI x86 desktop build
Bruce Forstall [Tue, 8 Aug 2017 00:28:22 +0000 (17:28 -0700)]
Fix SuperPMI x86 desktop build

6 years agoFix VSO 475427.
Pat Gavlin [Tue, 8 Aug 2017 00:05:46 +0000 (17:05 -0700)]
Fix VSO 475427.

In addition to repredicting if the frame size is large enough to require
that we reserve `r10`, we also need to throw out any previous
prediction. If we do not, we may decide to reuse it if uses less stack
space than the reprediction.

6 years agoFix VSO 471670.
Pat Gavlin [Mon, 7 Aug 2017 23:41:56 +0000 (16:41 -0700)]
Fix VSO 471670.

If we remove a NOP during rationalize that is unused, we need to ensure
that its operand is also marked as an unused value.

6 years agoFix VSO 469210.
Pat Gavlin [Mon, 7 Aug 2017 23:26:56 +0000 (16:26 -0700)]
Fix VSO 469210.

This bug arises when ARM32/Legacy backend generates an RMW operator
whose source operand is an addressing mode. In that case, `sched_AM`
needs to choose a register to use for the value that will be loaded from
memory. Originally it was doing so via `rsPickReg`, but that function
may spill registers that are in use, including the register that is
supposed to be modified by the RMW operator. All other points in
`sched_AM` that need to allocate a register use `rsPickFreeReg` in order
to avoid issues like this. This change updates the use of `rsPickReg` to
instead use `rsPickFreeReg`.

6 years agoMerge pull request #13250 from JosephTremoulet/CaptureHead
Joseph Tremoulet [Mon, 7 Aug 2017 23:07:21 +0000 (19:07 -0400)]
Merge pull request #13250 from JosephTremoulet/CaptureHead

Stop rejecting loops with backward exits

6 years agoSwaping the order of how scenarios are run. (#13255)
José Rivero [Mon, 7 Aug 2017 21:57:10 +0000 (14:57 -0700)]
Swaping the order of how scenarios are run. (#13255)

- Currently ILLink scenario is broken and the x64 scenario leg does not run JitBench
  By swaping the scenario it will let JitBench run while ILLink is being fixed.

6 years agoMerge pull request #13236 from briansull/arm-issue
Brian Sullivan [Mon, 7 Aug 2017 21:09:12 +0000 (14:09 -0700)]
Merge pull request #13236 from briansull/arm-issue

Updated fix for issue #13093

6 years agoFix Region DisplayName (#13249)
Tarek Mahmoud Sayed [Mon, 7 Aug 2017 19:48:39 +0000 (12:48 -0700)]
Fix Region DisplayName (#13249)

This change fix the logic when getting the display name from the OS and when we use the native name instead

6 years agoCleanup code access security from the unmanaged runtime (#13241)
Jan Kotas [Mon, 7 Aug 2017 19:16:45 +0000 (12:16 -0700)]
Cleanup code access security from the unmanaged runtime (#13241)

6 years agoStop rejecting loops with backward exits
Joseph Tremoulet [Mon, 7 Aug 2017 18:11:39 +0000 (11:11 -0700)]
Stop rejecting loops with backward exits

Remove some convoluted code from `optFindNaturalLoops` that has the effect
of rejecting loops with exits that are (lexically) backwards branches.
The comments in the removed code indicate that the intent was to identify
loops which include blocks lexically before `top`, but since `top` is
defined as `head->bbNext`, any such loop was doomed to be rejected by the
code (also being removed) that rejects a loop that "captures head".

When a loop does have a branch back to a block prior to `top`, the
subsequent code that identifies loop exits will identify it as such, and
the subsequent code that rejects predecessors other than `head` of loop
blocks ensures that the backwards branch truly was an exit.

This change still leaves `top` and `first` as separate concepts in the
loop table, to allow for subsequently improvements to loop detection to
identify such loops, though today they're always the same block.

6 years agoRemoved the legacy JIT32 assert regarding 4-byte alignment inArenaAllocator::allocate...
Brian Sullivan [Fri, 4 Aug 2017 21:39:05 +0000 (14:39 -0700)]
Removed the legacy JIT32 assert regarding 4-byte alignment inArenaAllocator::allocateMemory
Immediately after this assert we roundUp to an pointer size allocation amount.

Stopped using two implementation of ArenaAllocator::allocateMemory
Instead we add ifdef DEBUG parts to the common version
Move the implementation of ArenaAllocator::allocateMemory to the header file

Fixed a couple of allocations in assertionprop to use CMF_AssertionProp so that we correctly
attribute which phase uses the memory being allocated.
Added range check for the array writes in Compiler::optMapComplementary

Removed the AlignUp to 4-byte in operator new and new[] in compiler.hpp

6 years agofix callsignalhandlerwrapper(arm) (#13114)
chunseoklee [Mon, 7 Aug 2017 17:51:02 +0000 (02:51 +0900)]
fix callsignalhandlerwrapper(arm) (#13114)

issue: #13099
1. add unwind information
2. add free_stack

6 years agoUpdate CoreClr, CoreFx to preview2-25607-01, preview2-25607-02, respectively (#13133)
dotnet-maestro-bot [Mon, 7 Aug 2017 17:48:01 +0000 (10:48 -0700)]
Update CoreClr, CoreFx to preview2-25607-01, preview2-25607-02, respectively (#13133)

6 years agoUse attribute names without namespaces in a few places (#13248)
dotnet bot [Mon, 7 Aug 2017 17:47:05 +0000 (10:47 -0700)]
Use attribute names without namespaces in a few places (#13248)

Signed-off-by: dotnet-bot <dotnet-bot@microsoft.com>
6 years agoReduce size of array enumerators for x86 (#13157)
James Ko [Mon, 7 Aug 2017 16:55:51 +0000 (12:55 -0400)]
Reduce size of array enumerators for x86 (#13157)

6 years agoUse placement new to initialize ELF Header (instead of memcpy) (#13218)
Jonghyun Park [Mon, 7 Aug 2017 16:27:16 +0000 (01:27 +0900)]
Use placement new to initialize ELF Header (instead of memcpy) (#13218)

6 years agoEnable string format tests on Linux. (#13191)
Jim Ma [Mon, 7 Aug 2017 16:25:25 +0000 (04:25 +1200)]
Enable string format tests on Linux. (#13191)

Modified string format tests so that it can be supported on Linux.

Fix #11655

6 years agoUpdate buildtools to 2.0.0-prerelease-01903-01. (#13228)
Davis Goodin [Mon, 7 Aug 2017 15:00:42 +0000 (10:00 -0500)]
Update buildtools to 2.0.0-prerelease-01903-01. (#13228)

6 years agoReview fixes
Gleb Balykov [Mon, 7 Aug 2017 10:33:58 +0000 (13:33 +0300)]
Review fixes

6 years agoMove files to shared partition (#13244)
Jan Kotas [Mon, 7 Aug 2017 12:56:05 +0000 (05:56 -0700)]
Move files to shared partition (#13244)

6 years agoUpdate linux-instructions.md (#13246)
Sergio Schvezov [Mon, 7 Aug 2017 12:55:34 +0000 (09:55 -0300)]
Update linux-instructions.md (#13246)

On Ubuntu a configuration failure occurs when running `cmake` through `build.sh` on `corefx` asking to install `libkrb5-dev` or its equivalent.

6 years ago[RyuJIT/armel] Fix ifdef condition and Formatting Error
Hanjoung Lee [Mon, 7 Aug 2017 02:35:21 +0000 (11:35 +0900)]
[RyuJIT/armel] Fix ifdef condition and Formatting Error

6 years ago[RyuJIT/armel] arg regs are always TYP_INT
Hanjoung Lee [Fri, 4 Aug 2017 08:20:34 +0000 (17:20 +0900)]
[RyuJIT/armel] arg regs are always TYP_INT

6 years ago[RyuJIT/armel] Allocate one more temp for call address
Hanjoung Lee [Wed, 2 Aug 2017 08:19:55 +0000 (17:19 +0900)]
[RyuJIT/armel] Allocate one more temp for call address

6 years ago[RyuJIT/armel] Each reg gets own SpillFlag for MultiRegOp
Hanjoung Lee [Tue, 1 Aug 2017 02:45:17 +0000 (11:45 +0900)]
[RyuJIT/armel] Each reg gets own SpillFlag for MultiRegOp

6 years ago[RyuJIT/armel] Make RefPosition arg regs fixed
Hanjoung Lee [Tue, 25 Jul 2017 11:50:01 +0000 (20:50 +0900)]
[RyuJIT/armel] Make RefPosition arg regs fixed

Passing double arg regs via `r0:r1` or `r2:r3`,
each RefPosition's RegMask should have only one exact register
so the candidate register can be fixed.

e.g.)

```
<RefPosition #4099 @2625 RefTypeUse <Ivl:1237> BB35 regmask=[r0-r1] last>
<RefPosition #4100 @2625 RefTypeUse <Ivl:1238> BB35 regmask=[r0-r1] last>
```

to be:

```
<RefPosition #4099 @2625 RefTypeUse <Ivl:1237> BB35 regmask=[r0] last fixed>
<RefPosition #4100 @2625 RefTypeUse <Ivl:1238> BB35 regmask=[r1] last fixed>
```

Fix #12994

6 years agoMerge pull request #13227 from BruceForstall/Revert13186
Pat Gavlin [Sat, 5 Aug 2017 02:00:48 +0000 (19:00 -0700)]
Merge pull request #13227 from BruceForstall/Revert13186

Revert "Fixes issue #13093"

6 years agotypo (dotnet/corert#4274)
github-john-doe [Fri, 4 Aug 2017 22:12:03 +0000 (15:12 -0700)]
typo (dotnet/corert#4274)

Signed-off-by: dotnet-bot <dotnet-bot@microsoft.com>
6 years agotypo (#13229)
github-john-doe [Fri, 4 Aug 2017 22:50:47 +0000 (15:50 -0700)]
typo (#13229)

6 years agoalign the segment size to power of 2 and perf fix on getting the seg mapping table...
Maoni Stephens [Fri, 4 Aug 2017 19:55:58 +0000 (12:55 -0700)]
align the segment size to power of 2 and perf fix on getting the seg mapping table indices (#13076)

seg size fixes

6 years agoRevert "Fixes issue #13093"
Bruce Forstall [Fri, 4 Aug 2017 14:13:59 +0000 (07:13 -0700)]
Revert "Fixes issue #13093"

This reverts commit 0d390cceb7ab0c8a271afce315fe4456211fdc6c.

6 years agoMerge pull request #13197 from BredPet/master
Bruce Forstall [Fri, 4 Aug 2017 14:03:22 +0000 (07:03 -0700)]
Merge pull request #13197 from BredPet/master

ARM32: fix switch jump table generation bug

6 years agoMerge pull request dotnet/corert#4271 from dotnet/nmirror
Michal Strehovský [Fri, 4 Aug 2017 04:20:50 +0000 (21:20 -0700)]
Merge pull request dotnet/corert#4271 from dotnet/nmirror

Merge nmirror to master

Signed-off-by: dotnet-bot <dotnet-bot@microsoft.com>
6 years agoARM32: fix switch jump table generation bug
Petr Bred [Thu, 3 Aug 2017 15:23:53 +0000 (18:23 +0300)]
ARM32: fix switch jump table generation bug
- force using an inlined jumping instead switch table generation
- see https://github.com/dotnet/coreclr/issues/13194

Signed-off-by: Petr Bred <bredpetr@gmail.com>
6 years agoMerge pull request #13143 from shimingsg/v-shige/add-nogc
Shiming Ge [Fri, 4 Aug 2017 06:18:01 +0000 (14:18 +0800)]
Merge pull request #13143 from shimingsg/v-shige/add-nogc

Add NoGC test to coreclr

6 years agoAdd RHEL 6 official RID
Jan Vorlicek [Fri, 4 Aug 2017 00:46:12 +0000 (17:46 -0700)]
Add RHEL 6 official RID

6 years agoMerge pull request #13186 from briansull/alloc-align-fixes
Brian Sullivan [Fri, 4 Aug 2017 00:21:19 +0000 (17:21 -0700)]
Merge pull request #13186 from briansull/alloc-align-fixes

Fixes issue #13093

6 years agoFixes issue #13093
Brian Sullivan [Thu, 3 Aug 2017 01:48:48 +0000 (18:48 -0700)]
Fixes issue #13093

Removed the legacy JIT32 assert regarding 4-byte alignment inArenaAllocator::allocateMemory
Immediately after this assert we roundUp to an pointer size allocation amount.

Fixed a couple of allocations in assertionprop to use CMF_AssertionProp so that we correctly
attribute which phase uses the memory being allocated.
Added range check for the array writes in Compiler::optMapComplementary

Removed the now unnecessary AlignUp to 4-byte in operator new and new[] in compiler.hpp

6 years agoDrop the first iteration value of JitBench. (#13211)
José Rivero [Thu, 3 Aug 2017 21:59:47 +0000 (14:59 -0700)]
Drop the first iteration value of JitBench. (#13211)

6 years agotypo (#13196)
github-john-doe [Thu, 3 Aug 2017 20:37:11 +0000 (13:37 -0700)]
typo (#13196)

* typo

* typo

6 years agoMerge pull request #13145 from hqueue/arm/ryujit/issue_13118
Carol Eidt [Thu, 3 Aug 2017 15:16:05 +0000 (08:16 -0700)]
Merge pull request #13145 from hqueue/arm/ryujit/issue_13118

[Ryujit/ARM32] Update allocateBusyReg() in LSRA for ARM32

6 years agoMerge pull request #13166 from YongseopKim/ryujit/arm32/add_handling_secure_delegate_inv
Bruce Forstall [Thu, 3 Aug 2017 15:06:10 +0000 (08:06 -0700)]
Merge pull request #13166 from YongseopKim/ryujit/arm32/add_handling_secure_delegate_inv

[RyuJIT/ARM32] Adds code to handle SecureDelegateInvoke

6 years ago[RyuJIT/ARM32] Adds code to handle SecureDelegateInvoke
Yongseop Kim [Wed, 2 Aug 2017 12:04:47 +0000 (21:04 +0900)]
[RyuJIT/ARM32] Adds code to handle SecureDelegateInvoke

- Adds code to handle SecureDelegateInvoke on morph phase like legacy's handling.
- Set R4 to proper addr for indirect call of vsd
- This is like legacy's doing from #6500.
- Fix #12993

6 years agoApply review feedback
Hyung-Kyu Choi [Thu, 3 Aug 2017 02:24:38 +0000 (11:24 +0900)]
Apply review feedback

- Sink a local variable into the innermost block
- Fix format for if-else statement by adding braces

Signed-off-by: Hyung-Kyu Choi <hk0110.choi@samsung.com>
6 years agoMerge pull request #13154 from christianscheuer/fix-readme
Stephen Toub [Thu, 3 Aug 2017 01:55:58 +0000 (21:55 -0400)]
Merge pull request #13154 from christianscheuer/fix-readme

Fix reference to System.Threading.Thread class in README.md

6 years agoMerge pull request #13182 from adiaaida/addMinOptsTP
Michelle McDaniel [Thu, 3 Aug 2017 00:25:00 +0000 (17:25 -0700)]
Merge pull request #13182 from adiaaida/addMinOptsTP

Add JitMinOpts throughput jobs

6 years agoAdd JitMinOpts throughput jobs
Michelle McDaniel [Wed, 2 Aug 2017 23:29:37 +0000 (16:29 -0700)]
Add JitMinOpts throughput jobs

This change adds an opt_level throughput option so that we can run
throughput jobs in minopts mode. This also adds jobs to the lab for min
opts runs

6 years agoJIT: refactor logic for removing box upstream side effects (#13169)
Andy Ayers [Wed, 2 Aug 2017 22:46:56 +0000 (15:46 -0700)]
JIT: refactor logic for removing box upstream side effects (#13169)

Introduce a new method `gtTryRemoveBoxUpstreamEffects` to capture
the logic for cleaning up after a dead value type box into a utility.
Call this from `gtFoldExprSpecial` and now also from the inliner when
it finds a dead box argument.

Also remove the useless `fgExpandInline` field and associated
`fgIsInlining` method, as the jit never set the field to true.

No diffs from the refactoring. The inliner case kicks in in 3 places
in the test tree.

Closes #13136.

6 years agoAdd JitBench scenario testing. (#11400)
José Rivero [Wed, 2 Aug 2017 21:58:46 +0000 (14:58 -0700)]
Add JitBench scenario testing. (#11400)

6 years agoMerge pull request #13158 from parjong/fix/INTERPERTER_GDBJIT_Conflict
Noah Falk [Wed, 2 Aug 2017 21:06:21 +0000 (14:06 -0700)]
Merge pull request #13158 from parjong/fix/INTERPERTER_GDBJIT_Conflict

Resolve FEATURE_GDBJIT/FEATURE_INTERPRETER conflict

6 years agoMerge pull request #13155 from CarolEidt/UModTreeNodeInfo
Carol Eidt [Wed, 2 Aug 2017 18:31:13 +0000 (11:31 -0700)]
Merge pull request #13155 from CarolEidt/UModTreeNodeInfo

Set Register Requirements for Mod/Div

6 years agoMerge pull request #13128 from JosephTremoulet/Mulshift
Joseph Tremoulet [Wed, 2 Aug 2017 18:28:40 +0000 (14:28 -0400)]
Merge pull request #13128 from JosephTremoulet/Mulshift

Emit power-of-two constant multiply as shift

6 years agoMerge pull request #11456 from CarolEidt/EHWriteThruDoc
Russell C Hadley [Wed, 2 Aug 2017 17:29:19 +0000 (10:29 -0700)]
Merge pull request #11456 from CarolEidt/EHWriteThruDoc

Add an alternate algorithm done during LSRA

6 years ago[Arm64] GetLargestOnDieCacheSize (#13071)
Steve MacLean [Wed, 2 Aug 2017 10:48:14 +0000 (06:48 -0400)]
[Arm64] GetLargestOnDieCacheSize (#13071)

Look for cache info in /sys/.../cache/index*/size

If that fails estimate cache size based on processor count

6 years ago[RyuJIT/ARM32] Update allocateBusyReg() with a helper for ARM32
Hyung-Kyu Choi [Wed, 2 Aug 2017 10:06:04 +0000 (19:06 +0900)]
[RyuJIT/ARM32] Update allocateBusyReg() with a helper for ARM32

- Add a helper `isRegInUse()`
- Update `allocateBusyReg()` using `isRegInUse()` for ARM32

Signed-off-by: Hyung-Kyu Choi <hk0110.choi@samsung.com>
6 years ago[RyuJIT/ARM32] Unassign a double register properly in allocateBusyReg()
Hyung-Kyu Choi [Wed, 2 Aug 2017 09:35:53 +0000 (18:35 +0900)]
[RyuJIT/ARM32] Unassign a double register properly in allocateBusyReg()

- Introduce a helper, `unassignDoublePhysReg()` for ARM32
- Update `allocateBusyReg()` for ARM32 using `unassignDoublePhysReg()`

Signed-off-by: Hyung-Kyu Choi <hk0110.choi@samsung.com>
6 years agoRemove unused extern declarations (#13159)
Jonghyun Park [Wed, 2 Aug 2017 09:20:44 +0000 (18:20 +0900)]
Remove unused extern declarations (#13159)

6 years ago[RyuJIT/ARM32] Update allocateBusy() to test spill candiates with new helpers
Hyung-Kyu Choi [Wed, 2 Aug 2017 08:39:25 +0000 (17:39 +0900)]
[RyuJIT/ARM32] Update allocateBusy() to test spill candiates with new helpers

- Introduce a helper `canSpillReg` for all targets
- Introduce a helper `canSpillDoubleReg` for ARM32
- Remove a obsolute helper `canSpillThisReg`
- Update allocateBusy() to test spill candiates with new helpers

Signed-off-by: Hyung-Kyu Choi <hk0110.choi@samsung.com>
6 years agoPAL enable Thread affinity support (#12936)
Steve MacLean [Wed, 2 Aug 2017 08:37:37 +0000 (04:37 -0400)]
PAL enable Thread affinity support (#12936)