diff options
author | Evgeny Astigeevich <evgeny.astigeevich@arm.com> | 2016-04-21 08:54:08 +0000 |
---|---|---|
committer | Evgeny Astigeevich <evgeny.astigeevich@arm.com> | 2016-04-21 08:54:08 +0000 |
commit | fd89fe0dd3639b76aa3a38240e9175f0d07a2d3d (patch) | |
tree | fda1f03e9bbb4a0933643f86de1d004e65267ac4 /clang/lib/Driver/Tools.cpp | |
parent | 21690db05aedd0f8126f03dadb4d604968568b99 (diff) | |
download | bcm5719-llvm-fd89fe0dd3639b76aa3a38240e9175f0d07a2d3d.tar.gz bcm5719-llvm-fd89fe0dd3639b76aa3a38240e9175f0d07a2d3d.zip |
[AArch64][CodeGen] Fix of PR27158: incorrect peephole optimization in AArch64InstrInfo::optimizeCompareInstr
AArch64InstrInfo::optimizeCompareInstr has bug PR27158 which causes generation of incorrect code.
A compare instruction is substituted with another instruction which does not
produce the same flags as the original compare instruction.
This patch contains:
1. Fix of the bug.
2. A regression test in MIR.
3. A new test to check that SUBS is replaced by SUB.
Differential Revision: http://reviews.llvm.org/D18838
llvm-svn: 266969
Diffstat (limited to 'clang/lib/Driver/Tools.cpp')
0 files changed, 0 insertions, 0 deletions