[PATCH] [MIPS64] Make __clear_cache more optimal

Joerg Sonnenberger joerg at NetBSD.org
Sat Jan 3 13:54:20 PST 2015


What about using something like the following:

  static void clear_mips_cache(const void* Addr, size_t Size) {
    __asm__("...\n"
                   "jr.hb %0" :: r(&&after);
  after:
    ;
  }

and not creating a separate function in asm at all?


http://reviews.llvm.org/D6661

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






More information about the llvm-commits mailing list