platform/upstream/coreclr.git
7 years agoMerge pull request #9495 from pgavlin/OptConfig
Pat Gavlin [Sat, 11 Feb 2017 18:34:56 +0000 (10:34 -0800)]
Merge pull request #9495 from pgavlin/OptConfig

Add a flag to enable fine-grained optimize control.

7 years agoMerge pull request #9523 from jashook/up_arm64_timeout
Jarret Shook [Sat, 11 Feb 2017 17:04:43 +0000 (09:04 -0800)]
Merge pull request #9523 from jashook/up_arm64_timeout

Up the timeout for arm64 jobs that run tests.

7 years agoMerge pull request #9437 from JosephTremoulet/UpdateFormat
Joseph Tremoulet [Sat, 11 Feb 2017 15:06:29 +0000 (10:06 -0500)]
Merge pull request #9437 from JosephTremoulet/UpdateFormat

Update format.py to use dotnet cli rc3

7 years ago[Unix] Skipped tests should report exit code 2 (#9510)
Steve MacLean [Sat, 11 Feb 2017 03:54:07 +0000 (22:54 -0500)]
[Unix] Skipped tests should report exit code 2 (#9510)

7 years agoTurn segfauts into asserts in debug build (#9509)
Steve MacLean [Sat, 11 Feb 2017 03:53:27 +0000 (22:53 -0500)]
Turn segfauts into asserts in debug build (#9509)

* Prevent segfault if method table is null

* ValidateInner() check method table is not null

7 years agoUp the timeout for arm64 jobs that run tests.
jashook [Sat, 11 Feb 2017 03:51:42 +0000 (19:51 -0800)]
Up the timeout for arm64 jobs that run tests.

With the new test update arm64 jobs run too long to fit into the default 120 minutes.

7 years agoMerge pull request #9501 from chcosta/mscorlib_race
chcosta [Sat, 11 Feb 2017 03:50:36 +0000 (19:50 -0800)]
Merge pull request #9501 from chcosta/mscorlib_race

Fix race condition building System.Private.CoreLib.dll and SOS.NETCore.dll

7 years agoUpdate lsra-throughput.md
Carol Eidt [Sat, 11 Feb 2017 03:28:22 +0000 (19:28 -0800)]
Update lsra-throughput.md

7 years agoMerge pull request #9519 from CarolEidt/FixCoreFx15713
Carol Eidt [Sat, 11 Feb 2017 03:15:25 +0000 (19:15 -0800)]
Merge pull request #9519 from CarolEidt/FixCoreFx15713

Add a test case for PR #9496

7 years ago[Arm64/Unix] Remove aarch64 unsupported message (#9508)
Steve MacLean [Sat, 11 Feb 2017 01:08:35 +0000 (20:08 -0500)]
[Arm64/Unix] Remove aarch64 unsupported message (#9508)

7 years ago[Arm64/Unix] Fix gdbjit support (#9512)
Steve MacLean [Sat, 11 Feb 2017 01:08:05 +0000 (20:08 -0500)]
[Arm64/Unix] Fix gdbjit support (#9512)

7 years ago[Arm64] Add more GCROOTS logging (#9514)
Steve MacLean [Sat, 11 Feb 2017 01:07:48 +0000 (20:07 -0500)]
[Arm64] Add more GCROOTS logging (#9514)

7 years agoAdd a test case for PR #9496
Carol Eidt [Sat, 11 Feb 2017 01:05:34 +0000 (17:05 -0800)]
Add a test case for PR #9496

7 years agoMerge pull request #9491 from jkotas/NoInlining
Jan Kotas [Sat, 11 Feb 2017 00:58:48 +0000 (16:58 -0800)]
Merge pull request #9491 from jkotas/NoInlining

Use DynamicSecurityMethod attribute to mark methods with StackCrawlMark

7 years agoMerge pull request #9496 from CarolEidt/FixCoreFx15713
Carol Eidt [Sat, 11 Feb 2017 00:50:47 +0000 (16:50 -0800)]
Merge pull request #9496 from CarolEidt/FixCoreFx15713

Fix System.Numerics.Vectors CoreFx test failures

7 years agoFix formatting.
Pat Gavlin [Sat, 11 Feb 2017 00:47:22 +0000 (16:47 -0800)]
Fix formatting.

7 years agoMerge pull request #9499 from jashook/arm64_dyn_block_assert
Jarret Shook [Sat, 11 Feb 2017 00:40:59 +0000 (16:40 -0800)]
Merge pull request #9499 from jashook/arm64_dyn_block_assert

ARM64 Modify genCodeForInitBlk assert

7 years agoMerge pull request #9085 from mskvortsov/ryujit-arm32-eh
Bruce Forstall [Sat, 11 Feb 2017 00:03:42 +0000 (16:03 -0800)]
Merge pull request #9085 from mskvortsov/ryujit-arm32-eh

[RyuJIT/ARM32] EH, switch implementation and various updates

7 years agoARM64 Modify genCodeForInitBlk assert
jashook [Fri, 10 Feb 2017 22:28:51 +0000 (14:28 -0800)]
ARM64 Modify genCodeForInitBlk assert

Assert in codegenarm64 was incorrect for the GT_STORE_DYN_BLK oper.
If it is that oper then there will not be a temp reg used and instead
the size is computed and stored into REG_2. Add an assert to assert
this is done.

7 years agoremove additional slash
Christopher Costa [Fri, 10 Feb 2017 22:50:40 +0000 (14:50 -0800)]
remove additional slash

7 years agoFix the release build with OPT_CONFIG and address PR feedback.
Pat Gavlin [Fri, 10 Feb 2017 22:36:03 +0000 (14:36 -0800)]
Fix the release build with OPT_CONFIG and address PR feedback.

7 years agoFix race condition building System.Private.CoreLib and SOS.NETCore.dll
Christopher Costa [Fri, 10 Feb 2017 22:39:00 +0000 (14:39 -0800)]
Fix race condition building System.Private.CoreLib and SOS.NETCore.dll

7 years agoCreate lsra-throughput.md
Carol Eidt [Fri, 10 Feb 2017 22:33:12 +0000 (14:33 -0800)]
Create lsra-throughput.md

7 years agoUse DynamicSecurityMethod attribute to mark methods with StackCrawlMark
Jan Kotas [Fri, 10 Feb 2017 09:10:23 +0000 (01:10 -0800)]
Use DynamicSecurityMethod attribute to mark methods with StackCrawlMark

CoreCLR does not have CAS, and so we can conveniently use it to mark methods with StackCrawlMark to
decouple it from NoInlining. The original purpose of DynamicSecurityMethod was to disable inlining
of the caller and to insert CAS security checks, so we are basically just keeping the first part.

Fixes #8102

7 years agoRevert "JIT: fix confusing inline failure reason"
Jan Kotas [Fri, 10 Feb 2017 18:59:33 +0000 (10:59 -0800)]
Revert "JIT: fix confusing inline failure reason"

This reverts commit 0826f9dee6a8fdf8266523945708a684376b0280.

7 years agoMerge pull request #9493 from pgavlin/ReportBytesAllocated
Pat Gavlin [Fri, 10 Feb 2017 19:29:49 +0000 (11:29 -0800)]
Merge pull request #9493 from pgavlin/ReportBytesAllocated

Report bytes allocated in the JIT time log.

7 years agoFix formatting.
Pat Gavlin [Fri, 10 Feb 2017 19:15:15 +0000 (11:15 -0800)]
Fix formatting.

7 years agoFix System.Numerics.Vectors CoreFx test failures
Carol Eidt [Fri, 10 Feb 2017 18:34:09 +0000 (10:34 -0800)]
Fix System.Numerics.Vectors CoreFx test failures

CoreFx Issue 15713 is due to a case of an Indir(Addr(Field(Vector3 local))) which for some reason has a MorphAddrContext of MACK_Ind. Although I haven't fully identified why that is the case, we should be conservative in this case and mark the address as do-not-enregister.
In addition, when attempting to debug this with a Checked JIT, I encountered an AV due to `GetJitTls` returning null in the `JITDUMP` calls in `getMaxIntrinsicSIMDVectorLength`. Again, I'm not sure why this would be the case but I have added guarding conditions.

7 years agoJIT: enable implicit tail calls from inlined code (#9405)
Andy Ayers [Fri, 10 Feb 2017 18:30:00 +0000 (10:30 -0800)]
JIT: enable implicit tail calls from inlined code (#9405)

Inlines of calls from implicit tail call sites should allow recognition
of inlinee implicit tail call sites.

The jit recognizes implicit tail call sites during importation,
but the inlinee compiler instance did not have compTailCallOpt set
and so never recognized these instances. Fix this and update the logic
to detect the transitively implicit tail calls.

Now that these sites are recognized, morph needs a fix to tunnel through
repeated casts for tail calls, since each level of inlining might add a
cast. All these casts should be identical.

Note under R2R tail calls are not yet recognized (see ZapInfo::canTailCall).

Enable only under FEATURE_TAILCALL_OPT_SHARED_RETURN since the
inline tail call sites are not likely to be in BBJ_RETURN blocks.

Closes #9349.

7 years agoUse `%Iu` instead of `%I64u`.
Pat Gavlin [Fri, 10 Feb 2017 18:06:59 +0000 (10:06 -0800)]
Use `%Iu` instead of `%I64u`.

7 years agoAdd a flag to enable fine-grained optimize control.
Pat Gavlin [Thu, 26 Jan 2017 23:57:47 +0000 (15:57 -0800)]
Add a flag to enable fine-grained optimize control.

Defining this flag, `OPT_CONFIG`, enables a number of optimizer-related
configuration values. Changing these config values allows for some
interesting experiments without rebuilding the JIT (e.g. disabling the
SSA-based optimizer without forcing minopts, repeating optimizations,
etc.).

This flag is defined by default in debug builds and undefined by default
in release builds.

7 years agoReport bytes allocated in the JIT time log.
Pat Gavlin [Fri, 10 Feb 2017 17:40:45 +0000 (09:40 -0800)]
Report bytes allocated in the JIT time log.

This adds a new column, "Total Bytes Allocated", to the JIT time log.
This column reports the total number of bytes requested from the host by
the JIT's arena allocator.

This change also enables `FEATURE_JIT_TIMER` by default (which only
affects JIT32).

7 years ago[Linux/ARM] Fix cross-architecture component build error: disable unused code (#8866)
Hyeongseok Oh [Fri, 10 Feb 2017 10:36:29 +0000 (19:36 +0900)]
[Linux/ARM] Fix cross-architecture component build error: disable unused code (#8866)

* [ARM32/Linux] Fix cross-architecture component build error: unused function comparing CONTEXT with T_CONTEXT.
- change build script: remove duplicate test build in cross-component build

7 years agoHide VirtualUnwindXXX for DACESS_COMPILE (#9407)
Jonghyun Park [Fri, 10 Feb 2017 09:59:23 +0000 (18:59 +0900)]
Hide VirtualUnwindXXX for DACESS_COMPILE (#9407)

7 years agoUnify GetControlPC/GetRegdisplaySP/SetRegdisplaySP (#9444)
Jonghyun Park [Fri, 10 Feb 2017 09:42:56 +0000 (18:42 +0900)]
Unify GetControlPC/GetRegdisplaySP/SetRegdisplaySP (#9444)

* Unify GetControlPC

* Unify GetRegdisplaySP/SetRegdisplaySP

7 years agoRemove CER metadata (#9487)
Dan Moseley [Fri, 10 Feb 2017 08:13:09 +0000 (00:13 -0800)]
Remove CER metadata (#9487)

7 years agoGcHandle Perf Tweaks (#9473)
Ben Adams [Fri, 10 Feb 2017 08:12:50 +0000 (08:12 +0000)]
GcHandle Perf Tweaks (#9473)

* GcHandle Perf Tweaks

7 years agoRevert earlier CAS changes to Eventing/** and put under !if !CORECLR (#9478)
Dan Moseley [Fri, 10 Feb 2017 02:45:47 +0000 (18:45 -0800)]
Revert earlier CAS changes to Eventing/** and put under !if !CORECLR (#9478)

* Revert earlier CAS changes to Eventing/** and put under !if !CORECLR

7 years agoMerge pull request #9455 from sivarv/structPromotion
Sivarv [Fri, 10 Feb 2017 02:31:17 +0000 (18:31 -0800)]
Merge pull request #9455 from sivarv/structPromotion

Increase field count limit to 3 for promoting a struct with no field accesses.

7 years agoMerge pull request #9456 from adiaaida/fixDesktopBreak
Michelle McDaniel [Fri, 10 Feb 2017 01:51:05 +0000 (17:51 -0800)]
Merge pull request #9456 from adiaaida/fixDesktopBreak

Replace binary literal with hex

7 years agoMerge pull request #9476 from jkotas/revert-9313
William Godbe [Fri, 10 Feb 2017 01:40:16 +0000 (17:40 -0800)]
Merge pull request #9476 from jkotas/revert-9313

Revert "Delete mscorlib from packages (#9313)"

7 years agoMerge pull request #9470 from AndyAyersMS/FixNoinlineMessage
Andy Ayers [Fri, 10 Feb 2017 00:55:10 +0000 (16:55 -0800)]
Merge pull request #9470 from AndyAyersMS/FixNoinlineMessage

JIT: fix confusing inline failure reason

7 years agoOptimize Span.Fill (#9441)
Ahson Ahmed Khan [Fri, 10 Feb 2017 00:34:27 +0000 (16:34 -0800)]
Optimize Span.Fill (#9441)

7 years agoIncrease the field count limit to 3 for promoting a struct with no filed access.
sivarv [Thu, 9 Feb 2017 19:27:29 +0000 (11:27 -0800)]
Increase the field count limit to 3 for promoting a struct with no filed access.

7 years agoRevert "Delete mscorlib from packages (#9313)"
Jan Kotas [Fri, 10 Feb 2017 00:17:57 +0000 (16:17 -0800)]
Revert "Delete mscorlib from packages (#9313)"

This reverts commit 4fe623c9235e4df42be810d09ca7f282956e3cec.

# Conflicts:
# src/.nuget/Microsoft.NETCore.Runtime.CoreCLR/debian/Microsoft.NETCore.Runtime.CoreCLR.pkgproj

7 years agoMerge pull request #9451 from JosephTremoulet/UpdateValnum
Joseph Tremoulet [Fri, 10 Feb 2017 00:11:03 +0000 (19:11 -0500)]
Merge pull request #9451 from JosephTremoulet/UpdateValnum

Update conservative value numbers during CSE

7 years agoMerge pull request #9293 from guhuro/master
Drew Scoggins [Thu, 9 Feb 2017 23:32:10 +0000 (15:32 -0800)]
Merge pull request #9293 from guhuro/master

Add k-nucleotide to BenchmarkGames

7 years agoAdd k-nucleotide to BenchmarkGames
Gustavo Hurovich [Thu, 2 Feb 2017 23:27:48 +0000 (15:27 -0800)]
Add k-nucleotide to BenchmarkGames

Changed .gitattributes to set line endings to windows ones for the input
files of this test.
Added two different tests, one with and the other without parallelism.
Used FileStream instead of BufferedStream, since the latter does not
exist in netstandard 1.4

7 years ago[x86/Linux] Port SWCB_GetExecutionState (#9436)
Jonghyun Park [Thu, 9 Feb 2017 22:33:46 +0000 (07:33 +0900)]
[x86/Linux] Port SWCB_GetExecutionState (#9436)

7 years agoJIT: fix confusing inline failure reason
Andy Ayers [Thu, 9 Feb 2017 22:23:45 +0000 (14:23 -0800)]
JIT: fix confusing inline failure reason

When attempting to inline a method from the core library, the inline
will fail if the method being inlined has a noinline callee; the
presumption being that the callee expects to be able to find it's
immediate caller on the stack (this may or not may be the case, see #8102).

Update the failure message for this case to hopefully better explain
why the inline doesn't happen.

7 years agoReplace binary literal with hex
Michelle McDaniel [Thu, 9 Feb 2017 21:09:33 +0000 (13:09 -0800)]
Replace binary literal with hex

The desktop build breaks with the binary literal used in the fat pointer
mask. Replace it with a hex equivalent.

7 years agoUpdate conservative value numbers during CSE
Joseph Tremoulet [Tue, 7 Feb 2017 19:43:29 +0000 (11:43 -0800)]
Update conservative value numbers during CSE

When a CSE candidate's defs all share the same conservative value number,
its uses can be updated to share that conservative value number as well
when CSE is performed, because we are removing any reloads that may have
been the cause of the divergence.  Performing this update can improve
subsequent range check elimination when the CSE use is array length or
index in a bounds check.

7 years agoMerge pull request #9413 from jashook/fix_internal_build_warning
Jarret Shook [Thu, 9 Feb 2017 17:54:09 +0000 (09:54 -0800)]
Merge pull request #9413 from jashook/fix_internal_build_warning

Fix warning from an unsigned/signed comparison

7 years agoInlinable ArraySegment ctor (#9433)
Ben Adams [Thu, 9 Feb 2017 15:11:09 +0000 (15:11 +0000)]
Inlinable ArraySegment ctor (#9433)

7 years agoRename __reserved to __clr_reserved to avoid a conflict on Android (#9402)
Frederik Carlier [Thu, 9 Feb 2017 12:55:20 +0000 (13:55 +0100)]
Rename __reserved to __clr_reserved to avoid a conflict on Android (#9402)

* Rename __reserved to __clr_reserved to avoid a conflict on Android

7 years ago[x86/Linux] Fix UMThunkStub stack alignment (#9365)
SaeHie Park [Thu, 9 Feb 2017 09:36:10 +0000 (18:36 +0900)]
[x86/Linux] Fix UMThunkStub stack alignment (#9365)

Fixes out going call in UMThunkStub to be 16 byte stack aligned

7 years agoAddress the feedback.
Mikhail Skvortcov [Wed, 8 Feb 2017 10:26:22 +0000 (13:26 +0300)]
Address the feedback.

7 years agoRyuJIT/ARM32: more of verbosity for NYI tracking
Mikhail Skvortcov [Mon, 30 Jan 2017 10:58:12 +0000 (13:58 +0300)]
RyuJIT/ARM32: more of verbosity for NYI tracking

7 years agoRyuJIT/ARM32: misc tiny updates
Mikhail Skvortcov [Mon, 30 Jan 2017 10:55:53 +0000 (13:55 +0300)]
RyuJIT/ARM32: misc tiny updates

7 years agoRyuJIT/ARM32: update lea lowering
Mikhail Skvortcov [Mon, 30 Jan 2017 10:04:46 +0000 (13:04 +0300)]
RyuJIT/ARM32: update lea lowering

7 years agoRyuJIT/ARM32: enable fallback to legacy JIT
Mikhail Skvortcov [Thu, 26 Jan 2017 16:51:31 +0000 (19:51 +0300)]
RyuJIT/ARM32: enable fallback to legacy JIT

7 years agoRyuJIT/ARM32: enable DecomposeLongs phase
Mikhail Skvortcov [Thu, 26 Jan 2017 16:50:28 +0000 (19:50 +0300)]
RyuJIT/ARM32: enable DecomposeLongs phase

7 years agoRyuJIT/ARM32: fix consume order and clone emitInsTernary
Mikhail Skvortcov [Thu, 26 Jan 2017 16:49:05 +0000 (19:49 +0300)]
RyuJIT/ARM32: fix consume order and clone emitInsTernary

7 years agoRyuJIT/ARM32: refactor emitInsMov, update st.lclFld/Var codegen
Mikhail Skvortcov [Mon, 30 Jan 2017 08:47:46 +0000 (11:47 +0300)]
RyuJIT/ARM32: refactor emitInsMov, update st.lclFld/Var codegen

7 years agoRyuJIT/ARM32: fix node info for range check
Mikhail Skvortcov [Mon, 30 Jan 2017 08:08:06 +0000 (11:08 +0300)]
RyuJIT/ARM32: fix node info for range check

7 years agoRyuJIT/ARM32: enable call lowering
Mikhail Skvortcov [Mon, 30 Jan 2017 08:03:46 +0000 (11:03 +0300)]
RyuJIT/ARM32: enable call lowering

7 years agoRyuJIT/ARM32: enable switch and jump table codegen
Mikhail Skvortcov [Mon, 30 Jan 2017 08:00:34 +0000 (11:00 +0300)]
RyuJIT/ARM32: enable switch and jump table codegen

7 years agoRyuJIT/ARM32: enable EH code generation
Mikhail Skvortcov [Mon, 30 Jan 2017 07:56:32 +0000 (10:56 +0300)]
RyuJIT/ARM32: enable EH code generation

7 years agoMerge pull request #9416 from wtgodbe/Suse13
Gaurav Khanna [Thu, 9 Feb 2017 07:35:40 +0000 (23:35 -0800)]
Merge pull request #9416 from wtgodbe/Suse13

Remove OpenSuse13 from CI

7 years agoClean up GetAddrOfSecurityObject (#9423)
Jonghyun Park [Thu, 9 Feb 2017 06:39:13 +0000 (15:39 +0900)]
Clean up GetAddrOfSecurityObject (#9423)

7 years agoClean up EECodeManager::GetInstance (#9424)
Jonghyun Park [Thu, 9 Feb 2017 06:38:12 +0000 (15:38 +0900)]
Clean up EECodeManager::GetInstance (#9424)

* Clean up EECodeManager::GetInstance

* Use !CROSSGEN_COMPILE instead of CROSSGEN_COMPILE

7 years agoClean up EECodeManager::GetGSCookieAddr (#9425)
Jonghyun Park [Thu, 9 Feb 2017 06:37:46 +0000 (15:37 +0900)]
Clean up EECodeManager::GetGSCookieAddr (#9425)

7 years agoClean up EECodeManager::GetReturnKind (#9426)
Jonghyun Park [Thu, 9 Feb 2017 06:37:27 +0000 (15:37 +0900)]
Clean up EECodeManager::GetReturnKind (#9426)

7 years agoClean up EECodeManager::GetFunctionSize (#9427)
Jonghyun Park [Thu, 9 Feb 2017 06:37:10 +0000 (15:37 +0900)]
Clean up EECodeManager::GetFunctionSize (#9427)

7 years agoClean up EECodeManager::GetParamContextType (#9428)
Jonghyun Park [Thu, 9 Feb 2017 06:36:55 +0000 (15:36 +0900)]
Clean up EECodeManager::GetParamContextType (#9428)

7 years agoClean up EECodeManager::GetExactGenericsToken (#9429)
Jonghyun Park [Thu, 9 Feb 2017 06:36:30 +0000 (15:36 +0900)]
Clean up EECodeManager::GetExactGenericsToken (#9429)

7 years agoClean up EECodeManager::GetParamTypeArg (#9430)
Jonghyun Park [Thu, 9 Feb 2017 06:35:09 +0000 (15:35 +0900)]
Clean up EECodeManager::GetParamTypeArg (#9430)

7 years ago[x86/Linux] Revise TAStackCrawlCallBackWorker (#9432)
Jonghyun Park [Thu, 9 Feb 2017 06:34:48 +0000 (15:34 +0900)]
[x86/Linux] Revise TAStackCrawlCallBackWorker (#9432)

7 years agoMerge pull request #9431 from BruceForstall/Fix9374
Bruce Forstall [Thu, 9 Feb 2017 04:17:23 +0000 (20:17 -0800)]
Merge pull request #9431 from BruceForstall/Fix9374

Generate better code for x86 SIMD get[i] intrinsic

7 years agoUpdate format.py to use dotnet cli rc3
Joseph Tremoulet [Wed, 8 Feb 2017 22:51:05 +0000 (17:51 -0500)]
Update format.py to use dotnet cli rc3

Links taken from
https://github.com/dotnet/core/blob/master/release-notes/rc3-download.md

7 years agoModify path with prepend rather than append
Joseph Tremoulet [Wed, 8 Feb 2017 22:40:00 +0000 (17:40 -0500)]
Modify path with prepend rather than append

To make sure we always get the intended version of these commands.

7 years agoMerge pull request #9191 from sandreenko/CORERT-fat-call-transformation
Sergey Andreenko [Thu, 9 Feb 2017 02:33:23 +0000 (18:33 -0800)]
Merge pull request #9191 from sandreenko/CORERT-fat-call-transformation

CoreRT fat call transformation

7 years ago[x86/Linux] Fix Calling Convertion Mismatch inside ilasm/ildasm (#9410)
Jonghyun Park [Thu, 9 Feb 2017 01:27:57 +0000 (10:27 +0900)]
[x86/Linux] Fix Calling Convertion Mismatch inside ilasm/ildasm (#9410)

7 years agoDelete unnecessary domain sanity check (#9420)
Jan Kotas [Thu, 9 Feb 2017 01:26:37 +0000 (17:26 -0800)]
Delete unnecessary domain sanity check (#9420)

7 years agoGenerate better code for x86 SIMD get[i] intrinsic
Bruce Forstall [Thu, 9 Feb 2017 00:54:31 +0000 (16:54 -0800)]
Generate better code for x86 SIMD get[i] intrinsic

For get[i] intrinsic, with LONG base type and constant index, we can
compute the decomposed indices statically.

Fixes #9374

7 years agoMerge pull request #9392 from BruceForstall/FixGtGetOp2
Bruce Forstall [Thu, 9 Feb 2017 00:59:05 +0000 (16:59 -0800)]
Merge pull request #9392 from BruceForstall/FixGtGetOp2

Add gtGetPossibleOp2()

7 years ago[ARM32/Linux] Fix definition and CMake for cross-architecture build (#9262)
Hyeongseok Oh [Wed, 8 Feb 2017 23:49:23 +0000 (08:49 +0900)]
[ARM32/Linux] Fix definition and CMake for cross-architecture build (#9262)

- Fix ABI flag based on target
- Exclude corefx for cross-architecture component

7 years agoSpan Slice method AggressiveInlining (#9404)
Ahson Ahmed Khan [Wed, 8 Feb 2017 23:48:43 +0000 (15:48 -0800)]
Span Slice method AggressiveInlining (#9404)

7 years agoCoreRT calli transformation
Sergey Andreenko [Sat, 28 Jan 2017 23:28:05 +0000 (15:28 -0800)]
CoreRT calli transformation

Transform managed calli when compiling for CoreRT.

7 years agoAdd gtGetOp2IfPresent()
Bruce Forstall [Tue, 7 Feb 2017 04:15:07 +0000 (20:15 -0800)]
Add gtGetOp2IfPresent()

It was noticed that many uses of gtGetOp2() fully expect op2 to
exist and be non-nullptr, and the use of gtGetOp2() was simply
for style/readability purposes. However, it has a cost, as it
checks whether the tree is binary first, and returns nullptr if
not. For most cases, this is unecessary and expensive.

Introduce a new gtGetOp2IfPresent() function that captures the
previous behavior: checking if the tree node is binary before
returning op2, or returning nullptr otherwise. gtGetOp2() is
changed to simply return gtOp2 directly, without any checking
in non-DEBUG builds. It can be used if you know the op2 exists.

Most uses of gtGetOp2() were left alone (and hence get the new
behavior). The ones that need the old behavior were renamed
gtGetOp2IfPresent().

Mostly newer code is affected, as older code would generally
access gtOp2 directly, whereas newer code started using gtGetOp2()
for style and symmetry, especially after gtGetOp1() was introduced.

7 years agoMerge pull request #9382 from BruceForstall/CallFinallyCleanup
Bruce Forstall [Wed, 8 Feb 2017 23:10:53 +0000 (15:10 -0800)]
Merge pull request #9382 from BruceForstall/CallFinallyCleanup

Remove unnecessary parameter to genCallFinally()

7 years agoMerge pull request #9386 from BruceForstall/FixSwitchTable
Bruce Forstall [Wed, 8 Feb 2017 23:10:22 +0000 (15:10 -0800)]
Merge pull request #9386 from BruceForstall/FixSwitchTable

Fix compare/branch switch mode expansion

7 years agoFilter RefEmit modules in SendEventsForNgenMethods (#9418)
Jan Kotas [Wed, 8 Feb 2017 22:39:46 +0000 (14:39 -0800)]
Filter RefEmit modules in SendEventsForNgenMethods (#9418)

* Filter RefEmit modules in SendEventsForNgenMethods

Fixes #6427

7 years agoMerge pull request #9417 from wtgodbe/publishNativeBins
William Godbe [Wed, 8 Feb 2017 21:35:49 +0000 (13:35 -0800)]
Merge pull request #9417 from wtgodbe/publishNativeBins

Publish test native bins from correct directory

7 years agoPublish test native bins from correct directory
wtgodbe [Wed, 8 Feb 2017 20:30:03 +0000 (12:30 -0800)]
Publish test native bins from correct directory

7 years agoRemove OpenSuse13 from CI
wtgodbe [Wed, 8 Feb 2017 18:50:37 +0000 (10:50 -0800)]
Remove OpenSuse13 from CI

7 years agoFix warning from an unsigned/signed comparison
jashook [Wed, 8 Feb 2017 17:44:07 +0000 (09:44 -0800)]
Fix warning from an unsigned/signed comparison

This fixes a desktop build break.

7 years agoMerge pull request #9169 from JosephTremoulet/UntrackedMem
Joseph Tremoulet [Wed, 8 Feb 2017 16:09:05 +0000 (11:09 -0500)]
Merge pull request #9169 from JosephTremoulet/UntrackedMem

Value-number byref loads

7 years agoValue-number `ByrefExposed` memory and loads
Joseph Tremoulet [Fri, 13 Jan 2017 19:55:06 +0000 (14:55 -0500)]
Value-number `ByrefExposed` memory and loads

Teach value numbering to keep track of the current value number for
`ByrefExposed` memory, updating it appropriately at relevant stores.
Introduce a new VN operator `ByrefExposedLoad`, used for loads of
address-exposed locals and loads by indirs that don't have more specific
value numbers, which is a function of the current `ByrefExposed` memory VN
and the pointer VN.  This allows loop hoisting and CSE to recognize
redundant loads via byrefs when there are no intervening stores.

Fixes #7903.

7 years agoDefine `MemoryKind::ByrefExposed`
Joseph Tremoulet [Wed, 11 Jan 2017 19:58:57 +0000 (14:58 -0500)]
Define `MemoryKind::ByrefExposed`

Add a new `MemoryKind` to represent "any memory that byrefs may
reference", called `ByrefExposed`.  All definition points of `GcHeap`
become also definition points of `ByrefExposed`, and additionally, so do
definitions of address-exposed locals.

Because it is a common case (currently happening in 90% of methods in
System.Private.CoreLib) that a method has no definitions of
address-exposed locals, have liveness detect this condition and set the
new `byrefStatesMatchGcHeapStates` flag accordingly; when the states
match, the same `MemoryPhi`s, defnums, and `PerSsaData` are then shared
between the two memory kinds, to avoid excess allocations/processing.

This change defines `ByrefExposed` memory and its def/use points, and
builds SSA for it, but no optimizations make use of it, so this is a
no-diff change.