GBE: Refine logic of finding where the local variable is defined.
authorRuiling Song <ruiling.song@intel.com>
Fri, 9 May 2014 04:54:25 +0000 (12:54 +0800)
committerZhigang Gong <zhigang.gong@intel.com>
Fri, 9 May 2014 04:27:56 +0000 (12:27 +0800)
commitd6227270310a9fd4601a042899701312a8d4823e
tree829e4f202cd9718b01464c643f80a4d75dc512fa
parent6f7e6852e8924d428affe8874d658eb2809663a5
GBE: Refine logic of finding where the local variable is defined.

Traverse all uses of the local variable as there maybe some dead use.
Most time, the function will return fast, as the use tree is not deep.

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