SuccessChanges

Summary

  1. [InstCombine] add test for copysign; NFC (details)
  2. [CFG] Fix an assertion failure with static initializers (details)
Commit 25cf5d97ace15c6835f6ad222c5a3aaa02c99522 by spatel
[InstCombine] add test for copysign; NFC
The file was modifiedllvm/test/Transforms/InstCombine/copysign.ll
Commit 379613d7c7fa9698a2c300f4067165b5309a5e6e by xazax
[CFG] Fix an assertion failure with static initializers
The CFGBlock::getLastCondition was not prepared for static initializer
branches.
This patch also revamps CFG unit tests. Earlier the lifetime of the AST
was smaller than the CFG. So all the AST pointers within the CFG blocks
were dangling. This was OK, since none of the tests dereferenced those
pointers. This was, however, a timed bomb. There were patches in the
past that were reverted partially due to this problem.
Differential revision: https://reviews.llvm.org/D71791
The file was modifiedclang/lib/Analysis/CFG.cpp
The file was modifiedclang/unittests/Analysis/CFGTest.cpp
The file was modifiedclang/unittests/Analysis/CFGBuildResult.h