From 6f5670a4c3d8c079d4b676140ee69e5cc235d5a8 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Martin=20Storsj=C3=B6?= Date: Wed, 5 May 2021 15:23:14 +0300 Subject: [PATCH] Revert "[Passes] Enable the relative lookup table converter pass on aarch64" This reverts commit 57b259a852a6383880f5d0875d848420bb3c2945. The relative lookup table converter pass seems to cause problems for chromium on Windows/ARM64, see https://crbug.com/1204788. --- llvm/include/llvm/CodeGen/BasicTTIImpl.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/llvm/include/llvm/CodeGen/BasicTTIImpl.h b/llvm/include/llvm/CodeGen/BasicTTIImpl.h index dbd3d6c..c03d589 100644 --- a/llvm/include/llvm/CodeGen/BasicTTIImpl.h +++ b/llvm/include/llvm/CodeGen/BasicTTIImpl.h @@ -450,6 +450,11 @@ public: if (!TargetTriple.isArch64Bit()) return false; + // TODO: Triggers an issue in aarch64, so temporarily disable it. + // See https://reviews.llvm.org/D99572 for more information. + if (TargetTriple.getArch() == Triple::aarch64) + return false; + return true; } -- 2.7.4