platform/upstream/coreclr.git
7 years agoUpdate README.md
Aditya Mandaleeka [Fri, 30 Jun 2017 04:47:38 +0000 (21:47 -0700)]
Update README.md

7 years agoAdd link to archive of officially released .NET Core downloads (#12551)
Vance Morrison [Fri, 30 Jun 2017 04:42:52 +0000 (21:42 -0700)]
Add link to archive of officially released .NET Core downloads (#12551)

7 years agoMake libnuma soft dependency (#12556)
Adeel Mujahid [Fri, 30 Jun 2017 04:41:26 +0000 (07:41 +0300)]
Make libnuma soft dependency (#12556)

Load libnuma dynamically, so it is not linked at compile time and
hence avoid making it a hard dependency at runtime.

7 years agoMerge pull request dotnet/corert#4004 from dotnet/nmirror
Michal Strehovský [Wed, 28 Jun 2017 19:26:54 +0000 (12:26 -0700)]
Merge pull request dotnet/corert#4004 from dotnet/nmirror

Merge nmirror to master

Signed-off-by: dotnet-bot <dotnet-bot@microsoft.com>
7 years agoUse public ConditionalWeakTable iterator (#12564)
Jan Kotas [Fri, 30 Jun 2017 04:40:04 +0000 (21:40 -0700)]
Use public ConditionalWeakTable iterator (#12564)

Port https://github.com/dotnet/corert/pull/4030/commits/a3837f7fc60a1b7db872cfef6463f74fb1ffeafb to CoreCLR

7 years agoMove JIT_TrialAlloc declaration into jitinterfacex86.cpp (#12562)
Jonghyun Park [Fri, 30 Jun 2017 04:31:00 +0000 (13:31 +0900)]
Move JIT_TrialAlloc declaration into jitinterfacex86.cpp (#12562)

7 years agoRemove m_ prefixes in BinaryReader.cs (#12561)
Jan Kotas [Fri, 30 Jun 2017 04:30:42 +0000 (21:30 -0700)]
Remove m_ prefixes in BinaryReader.cs (#12561)

7 years agoMerge pull request #12557 from briansull/add-verbose
Brian Sullivan [Fri, 30 Jun 2017 02:19:54 +0000 (19:19 -0700)]
Merge pull request #12557 from briansull/add-verbose

Implement a /verbose flag to show the verbose output from crossgen

7 years agoImplement a /verbose flag to show the verbose output from crossgen
Brian Sullivan [Thu, 29 Jun 2017 22:57:40 +0000 (15:57 -0700)]
Implement a /verbose flag to show the verbose output from crossgen

Added info on /verbose option to PrintUsageHelper()
Convert printf(ascii) to wide strings in methodtable.cpp
In build.cmd echo the crossgen /CreatePdb command line

7 years agoMake ResourceManager netstandard 2.0 API behave correctly (#12536)
Tarek Mahmoud Sayed [Thu, 29 Jun 2017 19:32:30 +0000 (12:32 -0700)]
Make ResourceManager netstandard 2.0 API behave correctly (#12536)

* Make ResourceManager netstandard 2.0 API behave correctly

In netstandard 2.0 we have enabled the APIs like GetObject, GetStream,..etc. these are not functioning correctly in UWP apps because was assuming we always uses PRI files. The changes here is to initialize the managed resources too and let these APIs behave as if we are running inside desktop app.

* added #ifdef

* Remove the throwing as PRI can handle case insenitive lookup

* remove un-needed resources

7 years agoMerge pull request #12532 from jashook/fix_arm64_and_arm32_package_restore
Jarret Shook [Thu, 29 Jun 2017 19:25:02 +0000 (12:25 -0700)]
Merge pull request #12532 from jashook/fix_arm64_and_arm32_package_restore

Fix the package restore for arm64 and arm32

7 years agoUse the number of GC threads to calculate spin count (#12525)
Xiangyang (Mark) Guo [Thu, 29 Jun 2017 19:13:16 +0000 (12:13 -0700)]
Use the number of GC threads to calculate spin count (#12525)

* use the number of gc threads to calculate spin count

* use n_heaps

7 years agoFix the package restore for arm64 and arm32
jashook [Wed, 28 Jun 2017 21:22:39 +0000 (14:22 -0700)]
Fix the package restore for arm64 and arm32

7 years agoMerge pull request #12538 from dotnet-bot/from-tfs
Bruce Forstall [Thu, 29 Jun 2017 16:05:41 +0000 (09:05 -0700)]
Merge pull request #12538 from dotnet-bot/from-tfs

Merge changes from TFS

7 years agoMerge pull request #12360 from wateret/armel/dblarg
Carol Eidt [Thu, 29 Jun 2017 14:48:18 +0000 (07:48 -0700)]
Merge pull request #12360 from wateret/armel/dblarg

[RyuJIT/armel] Support `double` argument passing

7 years agoDelete file moved to shared partition
Jan Kotas [Thu, 29 Jun 2017 06:17:32 +0000 (23:17 -0700)]
Delete file moved to shared partition

7 years agoMerge pull request dotnet/corert#4004 from dotnet/nmirror
Michal Strehovský [Wed, 28 Jun 2017 19:26:54 +0000 (12:26 -0700)]
Merge pull request dotnet/corert#4004 from dotnet/nmirror

Merge nmirror to master

Signed-off-by: dotnet-bot <dotnet-bot@microsoft.com>
7 years agoReduce the verbosity of optdata sync on stdout (#12543)
Daniel Podder [Thu, 29 Jun 2017 09:05:38 +0000 (04:05 -0500)]
Reduce the verbosity of optdata sync on stdout (#12543)

Set the "StandardOutputImportance" attribute on the RestoreOptData
target to low, matching the "RestoreNETCorePlatforms" target. Logging
to sync.log remains verbose, but stdout on the console is made much less
verbose.

Fixes #12127

7 years agoFix GC contract violation (#12542)
Jan Kotas [Thu, 29 Jun 2017 07:21:17 +0000 (00:21 -0700)]
Fix GC contract violation (#12542)

7 years agoDelete test that tests pinning of System.Object (#12537)
Michal Strehovský [Thu, 29 Jun 2017 06:58:34 +0000 (23:58 -0700)]
Delete test that tests pinning of System.Object (#12537)

See dotnet/corefx#21673 for motivation. This test fails on CoreRT.

7 years ago[RyuJIT/armel] Support `double` argument passing
Hanjoung Lee [Mon, 19 Jun 2017 07:50:02 +0000 (16:50 +0900)]
[RyuJIT/armel] Support `double` argument passing

- Fix for putting `double` arguments between Lowering and Codegen phase
- Rename GenTreeMulLong to GenTreeMultiRegOp
  GT_PUTARG_REG could be GenTreeMultiRegOp on RyuJIT/arm

Fix #12293

7 years ago[x86/Linux] Adjust SP in throwing helper block (#12504)
Jonghyun Park [Thu, 29 Jun 2017 03:50:36 +0000 (12:50 +0900)]
[x86/Linux] Adjust SP in throwing helper block (#12504)

* [x86/Linux] Adjust SP in throwing helper block

* Fix format error

* Use funKind intead of siInFuncletRegion

* Use genSPtoFPdelta (and add some comments)

* Fix a typo

* Revert irrelevant changes

7 years agoMerge pull request #12528 from pgavlin/NoPgoOption
Pat Gavlin [Thu, 29 Jun 2017 00:15:59 +0000 (17:15 -0700)]
Merge pull request #12528 from pgavlin/NoPgoOption

Add a flag to build.{sh,cmd} to disable PGO.

7 years agoMerge pull request #12534 from dotnet-bot/from-tfs
Pat Gavlin [Thu, 29 Jun 2017 00:01:08 +0000 (17:01 -0700)]
Merge pull request #12534 from dotnet-bot/from-tfs

Merge changes from TFS

7 years agoMerge pull request #12487 from pgavlin/GenTreeVisitor
Pat Gavlin [Wed, 28 Jun 2017 23:04:26 +0000 (16:04 -0700)]
Merge pull request #12487 from pgavlin/GenTreeVisitor

Add a new, faster tree walker.

7 years agoRemove unreached() macro
Brian Sullivan [Wed, 28 Jun 2017 22:59:06 +0000 (15:59 -0700)]
Remove unreached() macro

[tfs-changeset: 1663789]

7 years agoMerge pull request #12531 from dotnet-bot/from-tfs
Bruce Forstall [Wed, 28 Jun 2017 22:21:40 +0000 (15:21 -0700)]
Merge pull request #12531 from dotnet-bot/from-tfs

Merge changes from TFS

7 years agoFix a release build break.
Pat Gavlin [Wed, 28 Jun 2017 22:08:02 +0000 (15:08 -0700)]
Fix a release build break.

[tfs-changeset: 1663777]

7 years agoMove ReaderWriterLockSlim to shared partition
Koundinya Veluri [Wed, 28 Jun 2017 19:07:08 +0000 (12:07 -0700)]
Move ReaderWriterLockSlim to shared partition

7 years agoEnable SourceBranch to be passed from the pipeline parameters
JC Aguilera [Wed, 28 Jun 2017 20:45:47 +0000 (13:45 -0700)]
Enable SourceBranch to be passed from the pipeline parameters

Enable SourceBranch to be passed from the pipeline parameters

7 years agoFormat code.
Pat Gavlin [Wed, 28 Jun 2017 20:44:44 +0000 (13:44 -0700)]
Format code.

7 years agoAddress PR feedback.
Pat Gavlin [Wed, 28 Jun 2017 20:40:40 +0000 (13:40 -0700)]
Address PR feedback.

7 years agoFix build error
Bruce Forstall [Wed, 28 Jun 2017 20:34:07 +0000 (13:34 -0700)]
Fix build error

[tfs-changeset: 1663755]

7 years agoFix usage style.
Pat Gavlin [Wed, 28 Jun 2017 19:59:19 +0000 (12:59 -0700)]
Fix usage style.

7 years agoReduce excessive loop count in interlocked tests (#12222)
Steve MacLean [Wed, 28 Jun 2017 19:52:24 +0000 (15:52 -0400)]
Reduce excessive loop count in interlocked tests (#12222)

7 years agoUse proper ifdef for EmitProfilerComCallXXX methods (#12502)
Jonghyun Park [Wed, 28 Jun 2017 18:44:18 +0000 (03:44 +0900)]
Use proper ifdef for EmitProfilerComCallXXX methods (#12502)

7 years agoFix debug assert (#12496)
Jeremy Kuhne [Wed, 28 Jun 2017 18:43:54 +0000 (11:43 -0700)]
Fix debug assert (#12496)

7 years agoFix build error when FEATURE_READYTORUN_COMPILER is disabled (#12505)
Jonghyun Park [Wed, 28 Jun 2017 18:40:22 +0000 (03:40 +0900)]
Fix build error when FEATURE_READYTORUN_COMPILER is disabled (#12505)

7 years agoAdd a flag to build.{sh,cmd} to disable PGO.
Pat Gavlin [Wed, 28 Jun 2017 17:37:51 +0000 (10:37 -0700)]
Add a flag to build.{sh,cmd} to disable PGO.

This is helpful when performing JIT throughput measurements.

7 years ago[RyuJIT/ARM32] Enable passing large split struct argument (#12050)
Hyeongseok Oh [Wed, 28 Jun 2017 18:01:18 +0000 (03:01 +0900)]
[RyuJIT/ARM32] Enable passing large split struct argument (#12050)

* [RyuJIT/ARM32] Enable passing large split struct

This enables passing split struct larger than 16 bytes.
To support splitted struct, it defines new GenTree type - GenTreePutArgSplit.
GenTreePutArgSplit is similar with GenTreePutArgStk,
but it is used for splitted struct only
and it has additional field to save register information.
GenTreePutArgSplit node is generated in lower phase.

* Apply reviews: split struct argument passing

- Fix some comments:
genPutArgSplit, GenTreePutArgStk, GenTreePutArgSplit, NuwPutArg, ArgComplete
- Add assertion check in genPutArgSplit, genCallInstruction
- Rename variable: baseReg
- Change flag for GenTreePutArgSplit: _TARGET_ARM && !LEGACY_BACKEND
- Change type of gtOtherRegs in GenTreePutArgSplit
- Remove duplicated code: NewPutArg
- Implement spill & restore flag for GenTreePutArgSplit

* Apply reviews

- Rebase
- Update managing spillFlag for split struct
- Implement spill & restore code generation
- Fix typos and rename variables
- Fix bug related to print gentree for split struct

* Fix bug and comments

- Fix bug in regset.cpp
- Add comments in morph.cpp's NYI_ARM
- Fix comments' typo in lsraarmarcp.cpp

7 years agoEnable SourceBranch to be passed from the pipeline parameters
JC Aguilera [Wed, 28 Jun 2017 17:15:58 +0000 (10:15 -0700)]
Enable SourceBranch to be passed from the pipeline parameters

sets SkipBranchAndVersionOverrides=false so SourceBranch and SourceVersion
are correctly passed through the pipeline file.

set SkipBranchAndVersionOverrides=true for the publish definitions as
they don't build from the SourceBranch and instead use a different
tools branch to do their work.

7 years agoConvert lvaMarkLclRefs to a visitor.
Pat Gavlin [Tue, 27 Jun 2017 22:28:26 +0000 (15:28 -0700)]
Convert lvaMarkLclRefs to a visitor.

7 years agoConvert lva{Inc,Dec}RefCntsCB to a visitor.
Pat Gavlin [Tue, 27 Jun 2017 18:34:33 +0000 (11:34 -0700)]
Convert lva{Inc,Dec}RefCntsCB to a visitor.

7 years agoConvert rationalize to the generic visitor.
Pat Gavlin [Tue, 27 Jun 2017 06:35:10 +0000 (23:35 -0700)]
Convert rationalize to the generic visitor.

7 years agoConvert fgWalkTree{Pre,Post,} to use the new visitor.
Pat Gavlin [Tue, 27 Jun 2017 06:18:32 +0000 (23:18 -0700)]
Convert fgWalkTree{Pre,Post,} to use the new visitor.

7 years agoAdd a generic tree visitor.
Pat Gavlin [Tue, 27 Jun 2017 06:17:30 +0000 (23:17 -0700)]
Add a generic tree visitor.

This visitor replaces the function-pointer-based walkers with a more
modern design centered around the curiously-recurring-template pattern.

7 years agoCleanup some instances of project.json from the repo (#12484)
Adeel Mujahid [Wed, 28 Jun 2017 15:02:16 +0000 (18:02 +0300)]
Cleanup some instances of project.json from the repo (#12484)

* Replace ScriptGenerator project.json with csproj

* Update project.json occurrences in docs
Fix few typos.

* Remove project.json comments

7 years agoFix remove in list (#12497)
Kyungwoo Lee [Wed, 28 Jun 2017 15:00:27 +0000 (08:00 -0700)]
Fix remove in list (#12497)

`remove` uses `erase` to delete the entry in list.
Since `erase` returns the next iterator, the iterator shouldn't be increased
when the entry is found and deleted.

7 years agoRemove disabled tests for Marshal.IsComObject(null) (#12359)
Hugh Bellamy [Wed, 28 Jun 2017 14:59:15 +0000 (21:59 +0700)]
Remove disabled tests for Marshal.IsComObject(null) (#12359)

7 years agoPartially remove relocations from Class section of NGEN-ed images (#11962)
Ruben Ayrapetyan [Wed, 28 Jun 2017 06:16:01 +0000 (09:16 +0300)]
Partially remove relocations from Class section of NGEN-ed images (#11962)

* Remove relocations for ParamTypeDesc::m_TemplateMT.

* Remove relocations for LayoutEEClass::m_LayoutInfo.m_pFieldMarshalers.

* Prepare RelativeFixupPointer.

* Remove relocations for FieldMarshaler::m_pFD and FieldMarshaler_*::m_*.

7 years agoRemove unused declaration (#12501)
Jonghyun Park [Wed, 28 Jun 2017 06:12:51 +0000 (15:12 +0900)]
Remove unused declaration (#12501)

7 years agospmi add R2R field to getFieldInfo (#12498)
Sergey Andreenko [Wed, 28 Jun 2017 00:06:59 +0000 (17:06 -0700)]
spmi add R2R field to getFieldInfo (#12498)

7 years agoFix JIT_NewArr1 8-byte alignment for ELEMENT_TYPE_R8 on x86.
Ruben Ayrapetyan [Tue, 27 Jun 2017 16:22:07 +0000 (19:22 +0300)]
Fix JIT_NewArr1 8-byte alignment for ELEMENT_TYPE_R8 on x86.

7 years agoFix rough edges after CLI update (dotnet/corert#3983)
Jan Kotas [Tue, 27 Jun 2017 00:10:12 +0000 (17:10 -0700)]
Fix rough edges after CLI update (dotnet/corert#3983)

* Move build-restore.cmd back to build-managed

buildpipeline needs to be updated to make this split

* Cleanup dir.props/dir.targets

* Add back VS clues

* Reformat whitespaces to match VS convention

Signed-off-by: dotnet-bot <dotnet-bot@microsoft.com>
7 years agoFix bad range check in TextInfo.IndexOfStringOrdinalIgnoreCase (#12478)
Atsushi Kanamori [Tue, 27 Jun 2017 18:51:28 +0000 (11:51 -0700)]
Fix bad range check in TextInfo.IndexOfStringOrdinalIgnoreCase (#12478)

Breaks:

   int idx = "\uabcd".IndexOf("", 1, StringComparison.OrdinalIgnoreCase);

should return 1, returns -1 instead.

(propagated fix from CoreRT)

7 years agoImplement JIT_NewArr1_R2R as R2R wrapper for JIT_NewArr1 to support both MethodTable...
Ruben Ayrapetyan [Tue, 27 Jun 2017 18:31:03 +0000 (21:31 +0300)]
Implement JIT_NewArr1_R2R as R2R wrapper for JIT_NewArr1 to support both MethodTable-based and TypeDesc-based helpers. (#12475)

Related issue: #12463

7 years agoMerge pull request #12473 from hqueue/arm/ryujit/lsra_use_helper
Carol Eidt [Tue, 27 Jun 2017 14:36:56 +0000 (07:36 -0700)]
Merge pull request #12473 from hqueue/arm/ryujit/lsra_use_helper

[RyuJIT/ARM32][WIP] Update LSRA with helpers

7 years ago[Linux][GDB-JIT] Fix memory leak (#12452)
Konstantin Baladurin [Tue, 27 Jun 2017 14:19:31 +0000 (17:19 +0300)]
[Linux][GDB-JIT] Fix memory leak (#12452)

Use NewArrayHolder for pVars in LocalsInfo class

7 years ago[RyuJIT/ARM32] Update LSRA with new helper
Hyung-Kyu Choi [Tue, 27 Jun 2017 11:24:34 +0000 (20:24 +0900)]
[RyuJIT/ARM32] Update LSRA with new helper

- Introduce updatePreviousInterval()
- Update LSRA with helper

Signed-off-by: Hyung-Kyu Choi <hk0110.choi@samsung.com>
7 years agosupport spmi collection for r2r calls. (#12343)
Sergey Andreenko [Tue, 27 Jun 2017 06:00:59 +0000 (23:00 -0700)]
support spmi collection for r2r calls. (#12343)

* CreateAgnostic_CORINFO_SIG_INFO

Also you pSig_Index always when it is index in the buffer map,
as we do for sigInst_classInst_Index for example.

* spmi Restore_CORINFO_RESOLVED_TOKENout

delete another duplicate.

* SpmiDumpHelper

* spmi cleaning: GetFunctionEntryPoint and GetAddressOfPInvokeTarget

* support GetReadyToRunHelper and GetReadyToRunDelegateCtorHelper in spmi.

* Fix typo that annoys desktop build.

* spmi GetReadyToRunDelegateCtorHelper

* spmi: use agnostic type for GetReadyToRunDelegateCtorHelper value.

* spmi dump Agnostic_CORINFO_LOOKUP

add stubLookup to dmpGetCallInfo

* clean dmpGetMethodSig and dmpGetTailCallCopyArgsThunk

7 years ago[RyuJIT/ARM32] Use helper for LSRA
Hyung-Kyu Choi [Tue, 27 Jun 2017 05:48:33 +0000 (14:48 +0900)]
[RyuJIT/ARM32] Use helper for LSRA

Signed-off-by: Hyung-Kyu Choi <hk0110.choi@samsung.com>
7 years agoMerge pull request #12460 from pgavlin/SinglePassRationalize
Pat Gavlin [Tue, 27 Jun 2017 05:34:53 +0000 (22:34 -0700)]
Merge pull request #12460 from pgavlin/SinglePassRationalize

Rephrase rationalize as a single IR walk.

7 years agoFormat code.
Pat Gavlin [Tue, 27 Jun 2017 03:32:53 +0000 (20:32 -0700)]
Format code.

7 years agoMerge pull request #12423 from CarolEidt/ContainDoNotEnreg
Carol Eidt [Tue, 27 Jun 2017 00:25:55 +0000 (17:25 -0700)]
Merge pull request #12423 from CarolEidt/ContainDoNotEnreg

Mark lvDoNotEnregister lclVars as contained

7 years agoMerge pull request #12457 from pgavlin/RewriteIntrinsicsRefactor
Pat Gavlin [Mon, 26 Jun 2017 23:16:27 +0000 (16:16 -0700)]
Merge pull request #12457 from pgavlin/RewriteIntrinsicsRefactor

Refactor the rationalizer's instrinsic rewriter.

7 years agoRephrase rationalize as a single IR walk.
Pat Gavlin [Mon, 26 Jun 2017 21:56:09 +0000 (14:56 -0700)]
Rephrase rationalize as a single IR walk.

This walk performs both pre- and post-order visits. The pre-order visit
is responsible for rewriting intrinsics as user calls where necessary;
the post-order visit is resonsible for converting HIR nodes into LIR
nodes.

7 years agoUse LIR utilities in the intrinsic rewriter.
Pat Gavlin [Mon, 26 Jun 2017 21:40:15 +0000 (14:40 -0700)]
Use LIR utilities in the intrinsic rewriter.

This simplifies the code a bit and prepares it for some changes to
perform single-pass rationalization.

7 years agoMerge pull request #12440 from pgavlin/MaintainIsUnusedValue
Pat Gavlin [Mon, 26 Jun 2017 22:31:06 +0000 (15:31 -0700)]
Merge pull request #12440 from pgavlin/MaintainIsUnusedValue

Maintain `LIR::IsUnusedValue` in the backend.

7 years agoUpdate a header comment.
Pat Gavlin [Mon, 26 Jun 2017 22:30:15 +0000 (15:30 -0700)]
Update a header comment.

7 years agoFormat code and address PR feedback.
Pat Gavlin [Mon, 26 Jun 2017 21:43:27 +0000 (14:43 -0700)]
Format code and address PR feedback.

7 years agoReplace array type handle with method table in arguments of array allocation helpers...
Ruben Ayrapetyan [Mon, 26 Jun 2017 21:18:19 +0000 (00:18 +0300)]
Replace array type handle with method table in arguments of array allocation helpers (#12369)

* Remove direct usage of type handle in JIT_NewArr1, with except of retrieving template method table.

* Assert that array type descriptor is loaded when array object's method table is set.

* Pass template method tables instead of array type descriptors to array allocation helpers.

7 years agoRefactor the rationalizer's instrinsic rewriter.
Pat Gavlin [Mon, 26 Jun 2017 19:58:42 +0000 (12:58 -0700)]
Refactor the rationalizer's instrinsic rewriter.

Change its two constituent static methods into instance methods.

7 years agoMerge pull request #12441 from pgavlin/TryGetUseInline
Pat Gavlin [Mon, 26 Jun 2017 15:52:31 +0000 (08:52 -0700)]
Merge pull request #12441 from pgavlin/TryGetUseInline

Avoid the use edge iterator in `TryGetUse`.

7 years agoMerge pull request dotnet/corert#3969 from dotnet/nmirror
Jan Kotas [Fri, 23 Jun 2017 01:43:00 +0000 (18:43 -0700)]
Merge pull request dotnet/corert#3969 from dotnet/nmirror

Merge nmirror to master

Signed-off-by: dotnet-bot <dotnet-bot@microsoft.com>
7 years agoFormat code.
Pat Gavlin [Sat, 24 Jun 2017 21:09:29 +0000 (14:09 -0700)]
Format code.

7 years agoReturn early in `TryGetUse` for unused nodes.
Pat Gavlin [Wed, 21 Jun 2017 17:24:27 +0000 (10:24 -0700)]
Return early in `TryGetUse` for unused nodes.

Now that `IsUnusedValue` is maintained during the first half of the
backend, `TryGetUse` can terminate early if it is set.

Note that this may return false negatives if the `IsUnusedValue` flag is
incorrectly set, but remains correct if said flag is incorrectly
cleared.

7 years agoRemove an IR walk during lowering.
Pat Gavlin [Sat, 24 Jun 2017 00:41:06 +0000 (17:41 -0700)]
Remove an IR walk during lowering.

Now that the `IsUnusedValue` flag is maintained by decomposition and
lowering, it does not need to be recalculated before LSRA.

7 years agoMaintain `LIR::IsUnusedValue` in the backend.
Pat Gavlin [Wed, 21 Jun 2017 01:22:45 +0000 (18:22 -0700)]
Maintain `LIR::IsUnusedValue` in the backend.

This flag indicates whether or not the SDSU temp produced by a node is
ever read. This information is needed by the register allocator, but is
also useful in other parts of the compiler (for example, `TryGetUse` can
return immediately if this flag is set). Setting this flag properly in
rationalize and maintaining it through decomposition and lowering allows
us to remove an IR walk immediately prior to LSRA.

7 years agoMerge pull request #12439 from pgavlin/SkipDecomp
Pat Gavlin [Sat, 24 Jun 2017 21:06:48 +0000 (14:06 -0700)]
Merge pull request #12439 from pgavlin/SkipDecomp

Update compLongUsed in rationalize.

7 years ago[CoreRT armel] fix for PINVOKE calls in CoreRT (#12373)
sergey ignatov [Sat, 24 Jun 2017 15:57:59 +0000 (18:57 +0300)]
[CoreRT armel] fix for PINVOKE calls in CoreRT (#12373)

7 years agoAvoid the use edge iterator in `TryGetUse`.
Pat Gavlin [Fri, 23 Jun 2017 22:31:47 +0000 (15:31 -0700)]
Avoid the use edge iterator in `TryGetUse`.

`TryGetUse` does not require the ordering semantics provided by the use
edge iterator. Replace use edge iteration with manual inspection of each
node type.

7 years agoUpdate compLongUsed in rationalize.
Pat Gavlin [Fri, 23 Jun 2017 16:26:42 +0000 (09:26 -0700)]
Update compLongUsed in rationalize.

This allows us to skip decompisition if long-typed values are not used by a method.

7 years agoMark lvDoNotEnregister lclVars as contained
Carol Eidt [Fri, 23 Jun 2017 21:54:27 +0000 (14:54 -0700)]
Mark lvDoNotEnregister lclVars as contained

Even if a lclVar is tracked, it may not be a register candidate. When determining whether a lclVar should be contained or RegOptional, take that into account.
In the interest of making this as accurate as possible, mark lclVars early as lvDoNotEnregister when they meet criteria that will later disqualify them from a register.

7 years agoUpdate Windows parameter name for Normalize/IsNormalized with invalid form (#12430)
Hugh Bellamy [Fri, 23 Jun 2017 22:23:50 +0000 (05:23 +0700)]
Update Windows parameter name for Normalize/IsNormalized with invalid form (#12430)

7 years ago# This is a combination of 2 commits.
Carol Eidt [Thu, 22 Jun 2017 18:43:57 +0000 (11:43 -0700)]
# This is a combination of 2 commits.
# The first commit's message is:

Mark lvDoNotEnregister lclVars as contained

Even if a lclVar is tracked, it may not be a register candidate. When determining whether a lclVar should be contained or RegOptional, take that into account.
In the interest of making this as accurate as possible, mark lclVars early as lvDoNotEnregister when they meet criteria that will later disqualify them from a register.

# This is the commit message #2:

Formatting

7 years agoAdd ELF program and section headers to core dump. (#12425)
Mike McLaughlin [Fri, 23 Jun 2017 22:02:36 +0000 (15:02 -0700)]
Add ELF program and section headers to core dump. (#12425)

Add ELF program and section headers to core dump.

Issue #12341

This allows the build id for the modules be extracted properly.

Add .eh_frame, .eh_frame_hdr and some other important sections to core dump.

Add managed module names to core dump so the symbol acquisition
tool can get symbol store keys for them.

Add the non memory/file backed memory regions to core dump so debuggers
like lldb can check if an address is "code" or not. Unwinding doesn't
work when there isn't a module/.so file present.

7 years ago[Local GC] Remove a number of inclusions of handle table private headers from the...
Sean Gillespie [Fri, 23 Jun 2017 21:48:41 +0000 (14:48 -0700)]
[Local GC] Remove a number of inclusions of handle table private headers from the VM (#12389)

* Remove inclusions of private handle table headers from the VM

* Add TraceRefCountedHandles to the GC handle table interface

* Fix the Unix build

* Move ValidatePinnedObject to marshalnative.h

7 years agoFix JitMinOptsTrackGCrefs for legacy x86 back-end (#12416)
Bruce Forstall [Fri, 23 Jun 2017 21:26:56 +0000 (14:26 -0700)]
Fix JitMinOptsTrackGCrefs for legacy x86 back-end (#12416)

Addresses #12415

7 years agoMerge pull request #12424 from wtgodbe/ArmRunsPipeline
William Godbe [Fri, 23 Jun 2017 19:20:56 +0000 (12:20 -0700)]
Merge pull request #12424 from wtgodbe/ArmRunsPipeline

Enable ARM test runs in Helix

7 years agoFix systemMask on Linux (#12387)
Xiangyang (Mark) Guo [Fri, 23 Jun 2017 00:39:41 +0000 (17:39 -0700)]
Fix systemMask on Linux (#12387)

* fix systemMask

* code refactor

7 years agoSpmi third cleaning (#12418)
Sergey Andreenko [Thu, 22 Jun 2017 23:41:21 +0000 (16:41 -0700)]
Spmi third cleaning (#12418)

* CreateAgnostic_CORINFO_SIG_INFO
Also you pSig_Index always when it is index in the buffer map,
as we do for sigInst_classInst_Index for example.
* spmi Restore_CORINFO_RESOLVED_TOKENout
delete another duplicate.

* SpmiDumpHelper

7 years agoMerge pull request #12409 from dotnet-bot/from-tfs
Bruce Forstall [Thu, 22 Jun 2017 23:06:24 +0000 (16:06 -0700)]
Merge pull request #12409 from dotnet-bot/from-tfs

Merge changes from TFS

7 years agoMerge pull request #12417 from sjsinju/fix_3bytes_struct
Bruce Forstall [Thu, 22 Jun 2017 21:24:23 +0000 (14:24 -0700)]
Merge pull request #12417 from sjsinju/fix_3bytes_struct

[RyuJIT/ARM32] Change the 3bytes struct to int on morph phase.

7 years agoEnable ARM test runs in Helix
wtgodbe [Thu, 22 Jun 2017 18:59:49 +0000 (11:59 -0700)]
Enable ARM test runs in Helix

7 years agoMerge pull request #12413 from wtgodbe/ArmRuns
William Godbe [Thu, 22 Jun 2017 18:55:26 +0000 (11:55 -0700)]
Merge pull request #12413 from wtgodbe/ArmRuns

First step for enabling ARM test runs

7 years agoMerge pull request #12422 from CarolEidt/lvaSetClassDiffable
Carol Eidt [Thu, 22 Jun 2017 18:35:34 +0000 (11:35 -0700)]
Merge pull request #12422 from CarolEidt/lvaSetClassDiffable

Make lvaSetClass dump diffable

7 years agoMake lvaSetClass dump diffable
Carol Eidt [Thu, 22 Jun 2017 17:35:36 +0000 (10:35 -0700)]
Make lvaSetClass dump diffable

7 years agoUpdate attribute-value in security build definition. (#12419)
Ravi Eda [Thu, 22 Jun 2017 17:19:59 +0000 (12:19 -0500)]
Update attribute-value in security build definition. (#12419)

7 years ago[RyuJIT/ARM32] Change the 3bytes struct to int on morph phase.
sjsujinkim [Thu, 22 Jun 2017 01:52:59 +0000 (10:52 +0900)]
[RyuJIT/ARM32] Change the 3bytes struct to int on morph phase.

It is necessary that the 3bytes struct which is a local var to int on morph phase.

Related Issue : #12290 (Assertion failed 'emitTypeSizes[TypeGet(type)] > 0')

7 years agoAdd String.Contains overload with StringComparison (#12400)
Yuri Vanin [Thu, 22 Jun 2017 04:57:25 +0000 (21:57 -0700)]
Add String.Contains overload with StringComparison (#12400)

Staging change of System.Private.CoreLib for CoreFX #20846