aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineCopyPropagation.cpp
diff options
context:
space:
mode:
authorPeter Kokai <kokaipeter@gmail.com>2019-12-30 00:22:55 -0800
committerFangrui Song <maskray@google.com>2019-12-30 00:42:46 -0800
commit36ae255663cfbe1813fcda7de421e3e10c00c91b (patch)
tree7b367dbb67dcc2b4bb886d619e19a9f2797f64a8 /llvm/lib/CodeGen/MachineCopyPropagation.cpp
parentb47b35ff51b355a446483777155290541ab64fae (diff)
downloadllvm-36ae255663cfbe1813fcda7de421e3e10c00c91b.zip
llvm-36ae255663cfbe1813fcda7de421e3e10c00c91b.tar.gz
llvm-36ae255663cfbe1813fcda7de421e3e10c00c91b.tar.bz2
[opt] Fix run-twice crash and detection problem
1. Execute `opt -run-twice a.ll` with in a terminal will crash. https://bugs.llvm.org/show_bug.cgi?id=44382 2. `-run-twice` saves output into two buffers and compares them. When outputing the result is disabled, that produces two empty string thus they are going to be equal all the time resulting false-positive results. The proposed solution is to generate the results even if the output will not be emitted, as that is required for the comparision. Differential Revision: https://reviews.llvm.org/D71967
Diffstat (limited to 'llvm/lib/CodeGen/MachineCopyPropagation.cpp')
0 files changed, 0 insertions, 0 deletions