[SystemZ] Return true from hasBitPreservingFPLogic().

This is currently NFC on benchmarks and tests.

Review: Ulrich Weigand
This commit is contained in:
Jonas Paulsson 2021-06-01 18:24:06 +02:00
parent fd229caa01
commit 9ee3f16919
1 changed files with 4 additions and 0 deletions

View File

@ -433,6 +433,10 @@ public:
}
bool isCheapToSpeculateCtlz() const override { return true; }
bool preferZeroCompareBranch() const override { return true; }
bool hasBitPreservingFPLogic(EVT VT) const override {
EVT ScVT = VT.getScalarType();
return ScVT == MVT::f32 || ScVT == MVT::f64 || ScVT == MVT::f128;
}
EVT getSetCCResultType(const DataLayout &DL, LLVMContext &,
EVT) const override;
bool isFMAFasterThanFMulAndFAdd(const MachineFunction &MF,