Change stripAndComputeConstantOffsets to accept a NULL DataLayout pointer
as well.