HomePhabricator

[CFG] Add a new function to get the proper condition of a CFGBlock

Authored by Szelethus on Jul 5 2019, 2:52 AM.

Description

[CFG] Add a new function to get the proper condition of a CFGBlock

getTerminatorCondition() returned a condition that may be outside of the
block, while the new function returns the proper one:

if (A && B && C) {}

Return C instead of A && B && C.

Differential Revision: https://reviews.llvm.org/D63538

llvm-svn: 365177

Details

Committed
SzelethusJul 5 2019, 2:52 AM
Differential Revision
D63538: [CFG] Add a new function to get the proper condition of a CFGBlock
Parents
rGbb7e97d783ef: [ARM] MVE fp to int conversions
Branches
Unknown
Tags
Unknown