[InstCombine] reduce code; NFC

llvm-svn: 346235
This commit is contained in:
Sanjay Patel 2018-11-06 15:53:58 +00:00
parent 70282a0501
commit 05e70fb978
1 changed files with 1 additions and 1 deletions

View File

@ -5284,7 +5284,7 @@ static Instruction *foldFCmpReciprocalAndZero(FCmpInst &I, Instruction *LHSI,
// Finally emit the new fcmp.
Value *X = LHSI->getOperand(1);
FCmpInst *NewFCI = new FCmpInst(Pred, X, RHSC);
NewFCI->setFastMathFlags(I.getFastMathFlags());
NewFCI->copyFastMathFlags(&I);
return NewFCI;
}