]> granicus.if.org Git - llvm/commitdiff
AMDGPU: Remove unnecessary check
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Mon, 23 Jan 2017 19:00:15 +0000 (19:00 +0000)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Mon, 23 Jan 2017 19:00:15 +0000 (19:00 +0000)
There are no scalar FP types that can be extended.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@292816 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/AMDGPU/SIISelLowering.cpp

index 4dde35a7b2da1dfc0b1e7ddf3f996264e109ba56..12fa3c2c9428c64121132f794d9f09bcdab24336 100644 (file)
@@ -1888,9 +1888,6 @@ MVT SITargetLowering::getScalarShiftAmountTy(const DataLayout &, EVT VT) const {
 bool SITargetLowering::isFMAFasterThanFMulAndFAdd(EVT VT) const {
   VT = VT.getScalarType();
 
-  if (!VT.isSimple())
-    return false;
-
   switch (VT.getSimpleVT().SimpleTy) {
   case MVT::f32:
     // This is as fast on some subtargets. However, we always have full rate f32