projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5a43901
)
[Passes] Reenable the relative lookup table converter pass for ELF and COFF on aarch64
author
Martin Storsjö
<martin@martin.st>
Wed, 12 May 2021 09:03:54 +0000
(12:03 +0300)
committer
Martin Storsjö
<martin@martin.st>
Wed, 12 May 2021 13:42:11 +0000
(16:42 +0300)
The bug (PR50227, affecting COFF) that caused the revert in
6f5670a4c3d8c079d4b676140ee69e5cc235d5a8
has been fixed in
382c505d9cfca8adaec47aea2da7bbcbc00fc05c
now, so it should be safe
to reenable the pass for that target (and ELF).
In PR50227 it's also mentioned that the same pass seems to cause
problems on aarch64 on darwin, so leaving it disabled there for now.
llvm/include/llvm/CodeGen/BasicTTIImpl.h
patch
|
blob
|
history
diff --git
a/llvm/include/llvm/CodeGen/BasicTTIImpl.h
b/llvm/include/llvm/CodeGen/BasicTTIImpl.h
index
c03d589
..
6dc82a8
100644
(file)
--- a/
llvm/include/llvm/CodeGen/BasicTTIImpl.h
+++ b/
llvm/include/llvm/CodeGen/BasicTTIImpl.h
@@
-450,9
+450,9
@@
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)
+ // TODO: Triggers
issues on aarch64 on darwin, so temporarily disable it
+ //
there
.
+ if (TargetTriple.getArch() == Triple::aarch64
&& TargetTriple.isOSDarwin()
)
return false;
return true;