GBE: fix the wrong usage of stack pointer and stack buffer.
authorZhigang Gong <zhigang.gong@intel.com>
Wed, 12 Mar 2014 08:51:57 +0000 (16:51 +0800)
committerZhigang Gong <zhigang.gong@intel.com>
Tue, 8 Apr 2014 08:21:32 +0000 (16:21 +0800)
commit75228e0be722b8650a07e17d12f2d565eac11371
treea4a2a23e8e6cb33f4ffe5a277ecee88a7ad87cbd
parent00029d4b0e34d79747f8a0753a74b3a60858fbbe
GBE: fix the wrong usage of stack pointer and stack buffer.

Stack pointer and stack buffer should be two different virtual
register. One is a vector and the other is a scalar. The reason
previous implementation could work is that it search curbe offset
and make a new stack buffer register manually which is not good.
Now fix it and remove those hacking code. We actually don't need
to use curbe offset manually after the allocation.

Signed-off-by: Zhigang Gong <zhigang.gong@intel.com>
Reviewed-by: "Yang, Rong R" <rong.r.yang@intel.com>
Reviewed-by: "Song, Ruiling" <ruiling.song@intel.com>
backend/src/backend/context.cpp
backend/src/backend/gen_context.cpp
backend/src/ir/profile.cpp
backend/src/ir/profile.hpp