]> granicus.if.org Git - llvm/commitdiff
Silencing a warning about isZExtFree hiding an inherited virtual function. No functio...
authorAaron Ballman <aaron@aaronballman.com>
Thu, 26 Jun 2014 13:45:47 +0000 (13:45 +0000)
committerAaron Ballman <aaron@aaronballman.com>
Thu, 26 Jun 2014 13:45:47 +0000 (13:45 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@211783 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/R600/AMDGPUISelLowering.cpp
lib/Target/R600/AMDGPUISelLowering.h

index 5ea05f7b1ed09524d390e188586ab017eb0207bf..cfd63250683707f5c0b9d8120caf107405d5bb88 100644 (file)
@@ -458,6 +458,10 @@ bool AMDGPUTargetLowering::isZExtFree(EVT Src, EVT Dest) const {
   return Src == MVT::i32 && Dest == MVT::i64;
 }
 
+bool AMDGPUTargetLowering::isZExtFree(SDValue Val, EVT VT2) const {
+  return isZExtFree(Val.getValueType(), VT2);
+}
+
 bool AMDGPUTargetLowering::isNarrowingProfitable(EVT SrcVT, EVT DestVT) const {
   // There aren't really 64-bit registers, but pairs of 32-bit ones and only a
   // limited number of native 64-bit operations. Shrinking an operation to fit
index 307921e65d6c6e9e817895e85cbaa457fd28bd8d..b7602ebb1c1ce463cbc6781f4508a82b68ddea55 100644 (file)
@@ -109,6 +109,7 @@ public:
 
   bool isZExtFree(Type *Src, Type *Dest) const override;
   bool isZExtFree(EVT Src, EVT Dest) const override;
+  bool isZExtFree(SDValue Val, EVT VT2) const override;
 
   bool isNarrowingProfitable(EVT VT1, EVT VT2) const override;