[PowerPC] Mark zext of a small scalar load as free
[oota-llvm.git] / lib / Target / PowerPC / PPCISelLowering.h
index 6149a21f4435b9bcc77844278eb8677e352c3fd9..db5a3e42d52fbfae055e1a204d47309fe73bc132 100644 (file)
@@ -526,6 +526,8 @@ namespace llvm {
     bool isTruncateFree(Type *Ty1, Type *Ty2) const override;
     bool isTruncateFree(EVT VT1, EVT VT2) const override;
 
+    bool isZExtFree(SDValue Val, EVT VT2) const override;
+
     /// \brief Returns true if it is beneficial to convert a load of a constant
     /// to just the constant itself.
     bool shouldConvertConstantLoadToIntImm(const APInt &Imm,