OSDN Git Service

[GlobalISel] Fix choice of instruction selector for AArch64 at -O0 with -global-isel=0
authorPetr Pavlu <petr.pavlu@arm.com>
Tue, 8 Jan 2019 14:19:06 +0000 (14:19 +0000)
committerPetr Pavlu <petr.pavlu@arm.com>
Tue, 8 Jan 2019 14:19:06 +0000 (14:19 +0000)
commit7885d2ca5ae8da146dcb51232ea8754aa07b5708
treebb2fddfcbedc8b1881dd76cd2d309e6f5e7f9dde
parentd7b7319bc2a6f4b8bad2e488609962b01a3fa544
[GlobalISel] Fix choice of instruction selector for AArch64 at -O0 with -global-isel=0

Commit rL347861 introduced an unintentional change in the behaviour when
compiling for AArch64 at -O0 with -global-isel=0. Previously, explicitly
disabling GlobalISel resulted in using FastISel but an updated condition
in the commit changed it to using SelectionDAG. The patch fixes this
condition and slightly better organizes the code that chooses the
instruction selector.

Fixes PR40131.

Differential Revision: https://reviews.llvm.org/D56266

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@350626 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/TargetPassConfig.cpp
test/CodeGen/AArch64/GlobalISel/gisel-commandline-option-fastisel.ll [new file with mode: 0644]