Make FoldBranchToCommonDest poison-safe by default
authorJuneyoung Lee <aqjune@gmail.com>
Sat, 27 Mar 2021 08:12:20 +0000 (17:12 +0900)
committerJuneyoung Lee <aqjune@gmail.com>
Sat, 27 Mar 2021 10:05:12 +0000 (19:05 +0900)
commit05884d3b525a1072dd9d834593a7899fe8284f43
treea6612d676c41cbf9a4c129fa68d24661a3e5e763
parenta283d725836033f5d7626470506160b7bf6d9107
Make FoldBranchToCommonDest poison-safe by default

This is a small patch to make FoldBranchToCommonDest poison-safe by default.
After fc3f0c9c, only two syntactic changes are needed to fix unit tests.
This does not cause any assembly difference in testsuite as well (-O3, X86-64 Manjaro).

Reviewed By: nikic

Differential Revision: https://reviews.llvm.org/D99452
llvm/include/llvm/Transforms/Utils/Local.h
llvm/lib/Transforms/Utils/SimplifyCFG.cpp
llvm/test/Transforms/IRCE/bad_expander.ll
llvm/test/Transforms/LoopSimplify/pr26682.ll