RegisterPressure: Simplify liveness tracking when lanemasks are not checked.
authorMatthias Braun <matze@braunis.de>
Tue, 29 Mar 2016 03:54:22 +0000 (03:54 +0000)
committerMatthias Braun <matze@braunis.de>
Tue, 29 Mar 2016 03:54:22 +0000 (03:54 +0000)
commitf54530ef003b4135b3d9f67041fb389b8238f851
tree8a4d2359c92a46de9962a1e3928faba33aa55c10
parent82cff886910c1e4a59963760609983aaef2f7d44
RegisterPressure: Simplify liveness tracking when lanemasks are not checked.

Split RegisterOperands code that collects defs/uses into a variant with
and without lanemask tracking. This is a bit of code duplication, but
there are enough subtle differences between the two variants that this
seems cleaner (and potentially faster).

This also fixes a problem where lanes where tracked even though
TrackLaneMasks was false. This is part of the fix for
http://llvm.org/PR27106. I will commit the testcase when it is
completely fixed.

llvm-svn: 264696
llvm/lib/CodeGen/RegisterPressure.cpp