OSDN Git Service

[MachineOutliner] Add RegState::Define to LDRXpost in insertOutlinedCall
authorJessica Paquette <jpaquette@apple.com>
Thu, 10 Aug 2017 23:11:24 +0000 (23:11 +0000)
committerJessica Paquette <jpaquette@apple.com>
Thu, 10 Aug 2017 23:11:24 +0000 (23:11 +0000)
commit9306f4af13e81a04b7434058d27cbbc4e0cca3cd
tree209ece6d203159f66fde2b5ee8da2cc9507a8a6b
parenta65cb63a72b6eb60d8f98aa7853f8c342343d0ce
[MachineOutliner] Add RegState::Define to LDRXpost in insertOutlinedCall

This fixes a MachineVerifier failure in machine-outliner.mir. Not explicitly
adding RegState::Define to the LR argument makes it unhappy because an explicit
definition is marked as a use.

Build failure:
http://lab.llvm.org:8080/green/job/clang-stage1-cmake-RA-expensive/7496/testReport/junit/LLVM/CodeGen_AArch64/machine_outliner_mir/

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@310671 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/AArch64/AArch64InstrInfo.cpp