[VE][compiler-rt] Correct location of VE support in clear_cache function, NFC

Looks like when the VE support was added it was added a few lines below where it should have been.

Reviewed By: MaskRay

Differential Revision: https://reviews.llvm.org/D123439
This commit is contained in:
Brad Smith 2022-04-14 15:45:37 -04:00
parent 7726ad04e2
commit 8cf83e9659

View file

@ -176,12 +176,12 @@ void __clear_cache(void *start, void *end) {
arg.len = (uintptr_t)end - (uintptr_t)start;
sysarch(RISCV_SYNC_ICACHE, &arg);
#elif defined(__ve__)
__asm__ volatile("fencec 2");
#else
#if __APPLE__
// On Darwin, sys_icache_invalidate() provides this functionality
sys_icache_invalidate(start, end - start);
#elif defined(__ve__)
__asm__ volatile("fencec 2");
#else
compilerrt_abort();
#endif