]> granicus.if.org Git - llvm/commit
[ARM] Use helpers for adding pred / CC operands. NFC
authorDiana Picus <diana.picus@linaro.org>
Fri, 20 Jan 2017 08:15:24 +0000 (08:15 +0000)
committerDiana Picus <diana.picus@linaro.org>
Fri, 20 Jan 2017 08:15:24 +0000 (08:15 +0000)
commit0f6ded417f162ea637d96cb19c86dcc172c73fa7
tree570ccd8fbefa3c9b8fa42ca27bebee4ad0c6422d
parent2129bbc97402cf94de58bb10ede8e3448e776df9
[ARM] Use helpers for adding pred / CC operands. NFC

Hunt down some of the places where we use bare addReg(0) or addImm(AL).addReg(0)
and replace with add(condCodeOp()) and add(predOps()). This should make it
easier to understand what those operands represent (without having to look at
the definition of the instruction that we're adding to).

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@292587 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/ARM/ARMBaseInstrInfo.cpp
lib/Target/ARM/ARMBaseRegisterInfo.cpp
lib/Target/ARM/ARMConstantIslandPass.cpp
lib/Target/ARM/ARMExpandPseudoInsts.cpp
lib/Target/ARM/ARMFrameLowering.cpp
lib/Target/ARM/ARMISelLowering.cpp
lib/Target/ARM/ARMLoadStoreOptimizer.cpp
lib/Target/ARM/Thumb2InstrInfo.cpp
lib/Target/ARM/ThumbRegisterInfo.cpp