SuccessChanges

Summary

  1. [HotColdSplit] Add options for splitting cold functions in separate section (details)
  2. [SCEVExpander] Make sure cast properly dominates Builder's IP. (details)
Commit 53ac14484869a62e0c8eb569c6a030e7af1312e8 by aditya7
[HotColdSplit] Add options for splitting cold functions in separate section

Add support for (if enabled) splitting cold functions into a separate section
in order to further boost locality of hot code.

Authored by: rjf (Ruijie Fang)
Reviewed by: hiraditya,rcorcs,vsk

Differential Revision: https://reviews.llvm.org/D85331
The file was addedllvm/test/Transforms/HotColdSplit/section-splitting-default.ll
The file was addedllvm/test/Transforms/HotColdSplit/section-splitting-custom.ll
The file was modifiedllvm/lib/Transforms/IPO/HotColdSplitting.cpp
Commit 23817cbd0b6549d6145e4d0dbc0162370184a21e by flo
[SCEVExpander] Make sure cast properly dominates Builder's IP.

The selected cast must properly dominate the Builder's IP, so we cannot
re-use the cast, if it matches the builder's IP.
The file was modifiedllvm/lib/Transforms/Utils/ScalarEvolutionExpander.cpp
The file was addedllvm/test/Transforms/LoopStrengthReduce/X86/expander-crashes.ll