]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/commit
MFC r258350:
authordim <dim@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Mon, 25 Nov 2013 22:58:12 +0000 (22:58 +0000)
committerdim <dim@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Mon, 25 Nov 2013 22:58:12 +0000 (22:58 +0000)
commitdc71fee9878752009f0388ab68948c6b9d5bbfd2
treebd131074df132c80d679f2bd22c8f5fec341f0cc
parentdf30e088fc5d99bd7eab8488ecba5383082c7508
MFC r258350:

Pull in r191896 from upstream llvm trunk:

  CaptureTracking: Plug a loophole in the "too many uses" heuristic.

  The heuristic was added to avoid spending too much compile time in a
  specially crafted test case (PR17461, PR16474) with many uses on a
  select or bitcast instruction can still trigger the slow case. Add a
  check for that case.

  This only affects compile time, don't have a good way to test it.

This fixes the excessive compile time spent on a specific file of the
graphics/rawtherapee port.

Reported by: mandree

git-svn-id: svn://svn.freebsd.org/base/stable/9@258608 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
contrib/llvm/lib/Analysis/CaptureTracking.cpp