OSDN Git Service

[AArch64][GlobalISel] Re-enable selection of volatile loads.
authorAmara Emerson <aemerson@apple.com>
Wed, 5 Dec 2018 00:03:09 +0000 (00:03 +0000)
committerAmara Emerson <aemerson@apple.com>
Wed, 5 Dec 2018 00:03:09 +0000 (00:03 +0000)
commit9459f97ba90fcfb88c8920ce1c44fddad3deca56
treed6b289d5b1be136432afa8ab1c916d51abd8cf5b
parent51be74a9b0987dbc7c3a20845cdd349b3b3a06c3
[AArch64][GlobalISel] Re-enable selection of volatile loads.

We previously disabled this in r323371 because of a bug where we selected an
extending load, but didn't delete the old G_LOAD, resulting in two loads being
generated for volatile loads.

Since we now have dedicated G_SEXTLOAD/G_ZEXTLOAD operations, and that the
tablegen patterns should no longer be able to select (ext(load x)) patterns, it
should be safe to re-enable it.

The old test case should still work as expected.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@348320 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/AArch64/AArch64InstructionSelector.cpp
test/CodeGen/AArch64/GlobalISel/irtranslator-volatile-load-pr36018.ll