mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-21 23:17:16 +00:00
Teach ProcessImplicitDefs to transform more COPY instructions into IMPLICIT_DEF (and subsequently eliminate them). This allows machine LICM to hoist IMPLICIT_DEF's. PR7620.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@108304 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -12,6 +12,7 @@
|
||||
#define LLVM_CODEGEN_PROCESSIMPLICITDEFS_H
|
||||
|
||||
#include "llvm/CodeGen/MachineFunctionPass.h"
|
||||
#include "llvm/ADT/SmallSet.h"
|
||||
|
||||
namespace llvm {
|
||||
|
||||
@@ -24,7 +25,8 @@ namespace llvm {
|
||||
private:
|
||||
|
||||
bool CanTurnIntoImplicitDef(MachineInstr *MI, unsigned Reg,
|
||||
unsigned OpIdx, const TargetInstrInfo *tii_);
|
||||
unsigned OpIdx, const TargetInstrInfo *tii_,
|
||||
SmallSet<unsigned, 8> &ImpDefRegs);
|
||||
|
||||
public:
|
||||
static char ID;
|
||||
|
||||
Reference in New Issue
Block a user