From 37e484b5ef4aa6ae840229eeb30328311b841b5a Mon Sep 17 00:00:00 2001 From: Matt Arsenault Date: Wed, 15 Oct 2014 23:37:49 +0000 Subject: [PATCH] R600: Remove unnecessary part of computeKnownBitsForTargetNode Zero-width BFEs are combined away already, so there's no point in handling them. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@219868 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/R600/AMDGPUISelLowering.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/lib/Target/R600/AMDGPUISelLowering.cpp b/lib/Target/R600/AMDGPUISelLowering.cpp index b7df3d8341d..ab771f5ee5b 100644 --- a/lib/Target/R600/AMDGPUISelLowering.cpp +++ b/lib/Target/R600/AMDGPUISelLowering.cpp @@ -2388,11 +2388,6 @@ void AMDGPUTargetLowering::computeKnownBitsForTargetNode( unsigned BitWidth = 32; uint32_t Width = CWidth->getZExtValue() & 0x1f; - if (Width == 0) { - KnownZero = APInt::getAllOnesValue(BitWidth); - KnownOne = APInt::getNullValue(BitWidth); - return; - } // FIXME: This could do a lot more. If offset is 0, should be the same as // sign_extend_inreg implementation, but that involves duplicating it. -- 2.11.0