diff options
author | Diana Picus <diana.picus@linaro.org> | 2016-10-11 09:17:47 +0000 |
---|---|---|
committer | Diana Picus <diana.picus@linaro.org> | 2016-10-11 09:17:47 +0000 |
commit | c93518db8c29e474abb5b8914a3c8cd301c1bfcc (patch) | |
tree | 61412de11e0f73c3aa6e444ada87afb563dde006 /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | 750f6a780b9c786ea45398436371b2656bb2cf4d (diff) | |
download | bcm5719-llvm-c93518db8c29e474abb5b8914a3c8cd301c1bfcc.tar.gz bcm5719-llvm-c93518db8c29e474abb5b8914a3c8cd301c1bfcc.zip |
[AArch64] Allow label arithmetic with add/sub/cmp
Allow instructions such as 'cmp w0, #(end - start)' by folding the
expression into a constant. For ELF, we fold only if the symbols are in
the same section. For MachO, we fold if the expression contains only
symbols that are not linker visible.
Fixes https://llvm.org/bugs/show_bug.cgi?id=18920
Differential Revision: https://reviews.llvm.org/D23834
llvm-svn: 283862
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions