forked from OSchip/llvm-project
parent
9108644dbf
commit
9b802e4650
|
@ -2423,17 +2423,22 @@ bool X86FastISel::X86SelectFPExtOrFPTrunc(const Instruction *I,
|
|||
if (OpReg == 0)
|
||||
return false;
|
||||
|
||||
unsigned ImplicitDefReg;
|
||||
if (Subtarget->hasAVX()) {
|
||||
ImplicitDefReg = createResultReg(RC);
|
||||
BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DbgLoc,
|
||||
TII.get(TargetOpcode::IMPLICIT_DEF), ImplicitDefReg);
|
||||
|
||||
}
|
||||
|
||||
unsigned ResultReg = createResultReg(RC);
|
||||
MachineInstrBuilder MIB;
|
||||
MIB = BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DbgLoc, TII.get(TargetOpc),
|
||||
ResultReg);
|
||||
if (Subtarget->hasAVX()) {
|
||||
unsigned ImplicitDefReg = createResultReg(RC);
|
||||
BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DbgLoc,
|
||||
TII.get(TargetOpcode::IMPLICIT_DEF), ImplicitDefReg);
|
||||
|
||||
if (Subtarget->hasAVX())
|
||||
MIB.addReg(ImplicitDefReg);
|
||||
}
|
||||
|
||||
MIB.addReg(OpReg);
|
||||
updateValueMap(I, ResultReg);
|
||||
return true;
|
||||
|
|
Loading…
Reference in New Issue