[llvm] 6f5670a - Revert "[Passes] Enable the relative lookup table converter pass on aarch64"
Martin Storsjö via llvm-commits
llvm-commits at lists.llvm.org
Wed May 5 05:24:14 PDT 2021
Author: Martin Storsjö
Date: 2021-05-05T15:23:14+03:00
New Revision: 6f5670a4c3d8c079d4b676140ee69e5cc235d5a8
URL: https://github.com/llvm/llvm-project/commit/6f5670a4c3d8c079d4b676140ee69e5cc235d5a8
DIFF: https://github.com/llvm/llvm-project/commit/6f5670a4c3d8c079d4b676140ee69e5cc235d5a8.diff
LOG: 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.
Added:
Modified:
llvm/include/llvm/CodeGen/BasicTTIImpl.h
Removed:
################################################################################
diff --git a/llvm/include/llvm/CodeGen/BasicTTIImpl.h b/llvm/include/llvm/CodeGen/BasicTTIImpl.h
index dbd3d6cb9a7b2..c03d589e888fa 100644
--- a/llvm/include/llvm/CodeGen/BasicTTIImpl.h
+++ b/llvm/include/llvm/CodeGen/BasicTTIImpl.h
@@ -450,6 +450,11 @@ class BasicTTIImplBase : public TargetTransformInfoImplCRTPBase<T> {
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;
}
More information about the llvm-commits
mailing list