AMDGPU: Check cheaper condition before SignBitIsZero
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Wed, 24 Feb 2016 04:55:29 +0000 (04:55 +0000)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Wed, 24 Feb 2016 04:55:29 +0000 (04:55 +0000)
commitcd09961fb3d21bcda1f9fcea31b782cf408550d1
treed64582ae8a30f0085d1dc9bd04773d7a6675f025
parent89307aa3e9fce213a55b64c042a001458d3ba41c
AMDGPU: Check cheaper condition before SignBitIsZero

Don't do an expensive computeKnownBits call when we
can do the cheap check for legal offsets first.

llvm-svn: 261720
llvm/lib/Target/AMDGPU/AMDGPUISelDAGToDAG.cpp