[PowerPC][NFC] Added `getDefMIPostRA` method
authorKai Luo <lkail@cn.ibm.com>
Thu, 25 Jul 2019 07:47:52 +0000 (07:47 +0000)
committerKai Luo <lkail@cn.ibm.com>
Thu, 25 Jul 2019 07:47:52 +0000 (07:47 +0000)
commit5c8af5380660d772030ead44f02785a691789609
tree2395bd30396f6ce68ca9acf59e02697fd6420871
parenta48f58c97feca138f772e2cf122f229d6e341d82
[PowerPC][NFC] Added `getDefMIPostRA` method

Summary:
In PostRA phase, we often have to find out the most recent definition
of a register.  This patch adds getDefMIPostRA so that other methods
can use it rather than implementing it repeatedly.

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

llvm-svn: 366990
llvm/lib/Target/PowerPC/PPCInstrInfo.cpp
llvm/lib/Target/PowerPC/PPCInstrInfo.h