revert r171306, since we cannot compare APInts with different bitwidths