Fix a build pushMap bug.
authorYang Rong <rong.r.yang@intel.com>
Thu, 26 Dec 2013 01:55:55 +0000 (09:55 +0800)
committerZhigang Gong <zhigang.gong@intel.com>
Tue, 31 Dec 2013 03:37:22 +0000 (11:37 +0800)
Insert the pushMap to set to avoid multiple push.

Signed-off-by: Yang Rong <rong.r.yang@intel.com>
Reviewed-by: Zhigang Gong <zhigang.gong@linux.intel.com>
backend/src/ir/lowering.cpp

index 013878c..23dd120 100644 (file)
@@ -238,6 +238,7 @@ namespace ir {
         if (offset != 0) {
             pushed = fn->newRegister(family);
             this->appendPushedConstant(pushed, argLocation);
+            inserted.insert(argLocation);
         } else {
             pushed = fn->getArg(loadAddImm.argID).reg;
         }