]> granicus.if.org Git - llvm/commit
[AArch64] Mark mrs of TPIDR_EL0 (thread pointer) as not having side effects.
authorChad Rosier <mcrosier@codeaurora.org>
Mon, 27 Mar 2017 15:52:38 +0000 (15:52 +0000)
committerChad Rosier <mcrosier@codeaurora.org>
Mon, 27 Mar 2017 15:52:38 +0000 (15:52 +0000)
commitc7506ed12457e5a24b35967d65b138eeb787582b
treeccd6bebae5d5542316960021d3204d821d88d8fe
parentab3be33d40cede6c9e610c05d07b057254f57317
[AArch64] Mark mrs of TPIDR_EL0 (thread pointer) as not having side effects.

Among other things, this allows Machine LICM to hoist a costly 'mrs'
instruction from within a loop.

Differential Revision: http://reviews.llvm.org/D31151

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@298851 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/AArch64/AArch64ExpandPseudoInsts.cpp
lib/Target/AArch64/AArch64InstrInfo.td
test/CodeGen/AArch64/thread-pointer.ll [new file with mode: 0644]