llvm-project/polly/lib
Michael Kruse 88fd2d0123 [ScopBuilder] Simplify main statement flag in buildEqivClassBlockStmts. NFC.
When reading code in ScopBuilder::buildEqivClassBlockStmts, I think the
main statement flag computation can be simplified, here is the patch.
It's based on two simple facts that:

  1. Instruction won't be removed once it's inserted into UnionFind.
  2. Main statement must be set if there is non-trivial statement besides the last one.

The patch also saves std::find call.

Patch by bin.narwal <bin.narwal@gmail.com>

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

llvm-svn: 369972
2019-08-26 21:31:47 +00:00
..
Analysis [ScopBuilder] Simplify main statement flag in buildEqivClassBlockStmts. NFC. 2019-08-26 21:31:47 +00:00
CodeGen [ScheduleOptimizer] Hoist extension nodes after schedule optimization. 2019-05-31 19:26:57 +00:00
Exchange Rename F_{None,Text,Append} to OF_{None,Text,Append}. NFC 2019-08-05 05:43:48 +00:00
External Update isl-cpp bindings 2018-08-09 05:07:14 +00:00
Support Rename F_{None,Text,Append} to OF_{None,Text,Append}. NFC 2019-08-05 05:43:48 +00:00
Transform [Polly] Migrate llvm::make_unique to std::make_unique 2019-08-14 22:28:12 +00:00
CMakeLists.txt [ScheduleOptimizer] Hoist extension nodes after schedule optimization. 2019-05-31 19:26:57 +00:00
Polly.cpp Apply include-what-you-use #include removal suggestions. NFC. 2019-03-28 20:19:49 +00:00