diff options
| author | Matt Arsenault <Matthew.Arsenault@amd.com> | 2014-10-15 23:37:49 +0000 |
|---|---|---|
| committer | Matt Arsenault <Matthew.Arsenault@amd.com> | 2014-10-15 23:37:49 +0000 |
| commit | 20893b3611b3a5d8cdd99a42b0ba6d77e974bd1c (patch) | |
| tree | 808526876187246a1de34ff502e77b692232f395 /llvm/lib/Target/R600/AMDGPUISelLowering.cpp | |
| parent | 6de7af424216fb153de2096c16a3e573b6be483a (diff) | |
| download | bcm5719-llvm-20893b3611b3a5d8cdd99a42b0ba6d77e974bd1c.tar.gz bcm5719-llvm-20893b3611b3a5d8cdd99a42b0ba6d77e974bd1c.zip | |
R600: Remove unnecessary part of computeKnownBitsForTargetNode
Zero-width BFEs are combined away already, so there's no point in
handling them.
llvm-svn: 219868
Diffstat (limited to 'llvm/lib/Target/R600/AMDGPUISelLowering.cpp')
| -rw-r--r-- | llvm/lib/Target/R600/AMDGPUISelLowering.cpp | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/llvm/lib/Target/R600/AMDGPUISelLowering.cpp b/llvm/lib/Target/R600/AMDGPUISelLowering.cpp index b7df3d8341d..ab771f5ee5b 100644 --- a/llvm/lib/Target/R600/AMDGPUISelLowering.cpp +++ b/llvm/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. |

