瀏覽代碼

* don't concatcopy if source = dest

git-svn-id: trunk@2691 -
Jonas Maebe 19 年之前
父節點
當前提交
71407ba8cb
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      compiler/powerpc/cgcpu.pas

+ 3 - 0
compiler/powerpc/cgcpu.pas

@@ -1751,6 +1751,9 @@ const
           internalerror(2002072704);
 {$endif extdebug}
 
+        if (references_equal(source,dest)) then
+          exit;
+
         { make sure short loads are handled as optimally as possible }
         if (len <= maxmoveunit) and
            (byte(len) in [1,2,4,8]) then