Calling TLI->getNumRegisters creates a circular dependency when building LLVM using...
authorNadav Rotem <nrotem@apple.com>
Mon, 29 Oct 2012 05:28:35 +0000 (05:28 +0000)
committerNadav Rotem <nrotem@apple.com>
Mon, 29 Oct 2012 05:28:35 +0000 (05:28 +0000)
commite49816076ce4214f593212a7328de664619de54b
tree2a03f1b628a833a64ac25fdeba31ee3983b9c331
parent8a5ec5d41590118c5d2d5a86213bef0a80255b2e
Calling TLI->getNumRegisters creates a circular dependency when building LLVM using cmake.

Get the number of registers by calling getTypeLegalizationCost.

PR14199.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@166911 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/TargetTransformImpl.cpp