[PATCH] [MIPS64] Make __clear_cache more optimal

Joerg Sonnenberger joerg at NetBSD.org
Wed Jan 14 12:22:14 PST 2015


Can't comment on the correctness of the MIPS assembly, but this looks much better.


================
Comment at: lib/builtins/clear_cache.c:59
@@ +58,3 @@
+        "30:\n"
+        "daddiu $ra, $ra, 12\n"
+        "jr.hb $ra\n"                        /* Return, clearing instruction
----------------
I take it the 12 is the offset of the instruction just after the nop? If yes, please comment.

http://reviews.llvm.org/D6661

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/






More information about the llvm-commits mailing list