diff options
author | Hans Wennborg <hans@hanshq.net> | 2017-01-11 01:36:57 +0000 |
---|---|---|
committer | Hans Wennborg <hans@hanshq.net> | 2017-01-11 01:36:57 +0000 |
commit | 6573976f5769e3059706c4d88721fb7c5515051c (patch) | |
tree | 0be65b02b56d474c428171aee76c0f27350a20d3 /clang/lib/Lex/ModuleMap.cpp | |
parent | 14cabdd2c3d740502a7de2c123a9b9a47e3612eb (diff) | |
download | llvm-6573976f5769e3059706c4d88721fb7c5515051c.zip llvm-6573976f5769e3059706c4d88721fb7c5515051c.tar.gz llvm-6573976f5769e3059706c4d88721fb7c5515051c.tar.bz2 |
Re-commit r289955: [X86] Fold (setcc (cmp (atomic_load_add x, -C) C), COND) to (setcc (LADD x, -C), COND) (PR31367)
This was reverted because it would miscompile code where the cmp had
multiple uses. That was due to a deficiency in the existing code, which
was fixed in r291630 (see the PR for details).
This re-commit includes an extra test for the kind of code that got
miscompiled: @test_sub_1_setcc_jcc.
llvm-svn: 291640
Diffstat (limited to 'clang/lib/Lex/ModuleMap.cpp')
0 files changed, 0 insertions, 0 deletions