SuccessChanges

Summary

  1. [RS4GC] Lazily set changed flag when folding single entry phis (details)
Commit d76c1d2247af599a67fcfee6b1ebfcffed99ee7c by yrouban
[RS4GC] Lazily set changed flag when folding single entry phis

The function FoldSingleEntryPHINodes() is changed to return if
it has changed IR or not. This return value is used by RS4GC to
set the MadeChange flag respectively.

Reviewed By: reames
Differential Revision: https://reviews.llvm.org/D93810
The file was modifiedllvm/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp
The file was modifiedllvm/include/llvm/Transforms/Utils/BasicBlockUtils.h
The file was modifiedllvm/lib/Transforms/Utils/BasicBlockUtils.cpp