GBE: don't allocate/modify flag if it is not used in current BB.
authorZhigang Gong <zhigang.gong@intel.com>
Tue, 13 May 2014 09:51:26 +0000 (17:51 +0800)
committerZhigang Gong <zhigang.gong@intel.com>
Fri, 23 May 2014 11:09:41 +0000 (19:09 +0800)
commit150e6f3a4a4b1c1f8e6d4d7baac344187b4c8325
tree1ef22713711f44964b5c7a81630bd5081c2ed254
parentc3c3a343dee75c16fb793366c2aa4d7711db6430
GBE: don't allocate/modify flag if it is not used in current BB.

If a flag is not used in current BB, we don't need to
set the modFlag bit on that instruction. Thus the register
allocation stage will not allocate a flag register for it.

No performance impact, as the previous implementation will
expire that flag register immediately.

Signed-off-by: Zhigang Gong <zhigang.gong@intel.com>
Reviewed-by: "Song, Ruiling" <ruiling.song@intel.com>
backend/src/backend/gen_insn_selection.cpp