HomePhabricator

[AMDGPU] Avoid redundant calls to numBits in AMDGPUCodeGenPrepare…

Authored by abinavpp on Oct 14 2021, 8:59 PM.

Description

[AMDGPU] Avoid redundant calls to numBits in AMDGPUCodeGenPrepare::replaceMulWithMul24().

The isU24() and isI24() calls numBits to make its decision. This change
replaces them with the internal numBits call so that we can use its
result for the > 32 bit width cases.

Differential Revision: https://reviews.llvm.org/D111864