Revert "[Passes] Enable the relative lookup table converter pass on aarch64"
authorMartin Storsjö <martin@martin.st>
Wed, 5 May 2021 12:23:14 +0000 (15:23 +0300)
committerMartin Storsjö <martin@martin.st>
Wed, 5 May 2021 12:23:14 +0000 (15:23 +0300)
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

index dbd3d6c..c03d589 100644 (file)
@@ -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;
   }