]> granicus.if.org Git - llvm/commit
[x86] NFC - Refactor the custom lowering of `(load; op; store)` RMW sequences.
authorChandler Carruth <chandlerc@gmail.com>
Fri, 25 Aug 2017 02:04:03 +0000 (02:04 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Fri, 25 Aug 2017 02:04:03 +0000 (02:04 +0000)
commit22db2c96fbfe7254832b3aedbd94ed37a5e9345d
treeb4ad016a051aac28ea0fd90fe060771cf396599f
parent01fd7ebe933dfab25e72f9b6fdaeb63b9f9ddc27
[x86] NFC - Refactor the custom lowering of `(load; op; store)` RMW sequences.

This extracts the code out of a giant switch in preparation for expanding it to
handle operations other thin `inc` and `dec`. Add a FIXME indicating what's
coming here.

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@311748 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86ISelDAGToDAG.cpp