diff options
| author | Chris Lattner <clattner@google.com> | 2018-12-30 16:22:50 -0800 |
|---|---|---|
| committer | jpienaar <jpienaar@google.com> | 2019-03-29 14:48:13 -0700 |
| commit | ae618428f6c7d79a2fe9a970bf64046108d415f7 (patch) | |
| tree | e85ac796923def9cb747749d2b6b6307abf859f4 /mlir/lib/Transforms/Vectorization | |
| parent | 545f3ce430886c651bfbe3f099c6a5dae9cf5e51 (diff) | |
| download | bcm5719-llvm-ae618428f6c7d79a2fe9a970bf64046108d415f7.tar.gz bcm5719-llvm-ae618428f6c7d79a2fe9a970bf64046108d415f7.zip | |
Greatly simplify the ConvertToCFG pass, converting it from a module pass to a
function pass, and eliminating the need to copy over code and do
interprocedural updates. While here, also improve it to make fewer empty
blocks, and rename it to "LowerIfAndFor" since that is what it does. This is
a net reduction of ~170 lines of code.
As drive-bys, change the splitBlock method to *not* insert an unconditional
branch, since that behavior is annoying for all clients. Also improve the
AsmPrinter to not crash when a block is referenced that isn't linked into a
function.
PiperOrigin-RevId: 227308856
Diffstat (limited to 'mlir/lib/Transforms/Vectorization')
0 files changed, 0 insertions, 0 deletions

