[TLI] Fix breakage introduced by D21739.
authorMarcin Koscielnicki <koriakin@0x04.net>
Mon, 21 Nov 2016 20:20:39 +0000 (20:20 +0000)
committerMarcin Koscielnicki <koriakin@0x04.net>
Mon, 21 Nov 2016 20:20:39 +0000 (20:20 +0000)
commit6af8e6c3d533c756449366716b63672260fb9279
tree359fd99c8efd27a94978a3cdc2f55b37ac40c7ad
parent28d5f059ae1ff0e2a8d91f503dc3d9746eafab7a
[TLI] Fix breakage introduced by D21739.

The initialize function has an early return for AMDGPU targets.  If taken,
the ShouldExtI32* initialization code will not be executed, resulting in
invalid values in the corresponding fields.  Fix this by moving the code
to the top of the function.

llvm-svn: 287570
llvm/lib/Analysis/TargetLibraryInfo.cpp