r310191 - [X86] Enable isel to use the PAUSE instruction even when SSE2 is disabled. Clang part

Hans Wennborg via cfe-commits cfe-commits at lists.llvm.org
Mon Aug 7 13:17:13 PDT 2017


On Sat, Aug 5, 2017 at 4:35 PM, Craig Topper via cfe-commits
<cfe-commits at lists.llvm.org> wrote:
> Author: ctopper
> Date: Sat Aug  5 16:35:54 2017
> New Revision: 310191
>
> URL: http://llvm.org/viewvc/llvm-project?rev=310191&view=rev
> Log:
> [X86] Enable isel to use the PAUSE instruction even when SSE2 is disabled. Clang part
>
> Summary:
> On older processors this instruction encoding is treated as a NOP.
>
> MSVC doesn't disable intrinsics based on features the way clang/gcc does. Because the PAUSE instruction encoding doesn't crash older processors, some software out there uses these intrinsics without checking for SSE2.
>
> This change also seems to also be consistent with gcc behavior.
>
> Fixes PR34079
>
> Reviewers: RKSimon, zvi
>
> Reviewed By: RKSimon
>
> Subscribers: cfe-commits
>
> Differential Revision: https://reviews.llvm.org/D36362

Merged to 5.0 in r310294.


More information about the cfe-commits mailing list