Skip to content

Commit

Permalink
Silencing a warning about isZExtFree hiding an inherited virtual func…
Browse files Browse the repository at this point in the history
…tion. No functional change intended.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@211783 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
AaronBallman committed Jun 26, 2014
1 parent fce47fe commit 2711c0a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/Target/R600/AMDGPUISelLowering.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions lib/Target/R600/AMDGPUISelLowering.h
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ class AMDGPUTargetLowering : public TargetLowering {

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;

Expand Down

0 comments on commit 2711c0a

Please sign in to comment.