[PATCH] D60619: New pass to produce more easily-read IR.
Arnt Gulbrandsen via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Apr 12 08:32:06 PDT 2019
arnt created this revision.
arnt added reviewers: jyknight, MaskRay, mtrofin, fhahn, craig.topper.
Herald added subscribers: llvm-commits, hiraditya, mgorny.
Herald added a project: LLVM.
arnt added a comment.
This patch's reviewer selection algorithm: Those who have changed two or more files in the same directory recently. I hope you don't mind.
This doesn't change the compiled output, merely reorders the basic blocks.
Frontends tend to create basic blocks in the order they discover that they
need the blocks, which is often not a great order for reading and
understanding the IR output.
The new pass is never called by default, but can be invoked with opt:
opt -S -passes improve-reading-order somefile.bc | less
Repository:
rL LLVM
https://reviews.llvm.org/D60619
Files:
llvm/include/llvm/Transforms/Utils/ImproveReadingOrder.h
llvm/lib/Passes/PassBuilder.cpp
llvm/lib/Passes/PassRegistry.def
llvm/lib/Transforms/Utils/CMakeLists.txt
llvm/lib/Transforms/Utils/ImproveReadingOrder.cpp
llvm/test/Transforms/Util/improve-reading-order.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D60619.194894.patch
Type: text/x-patch
Size: 12486 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190412/c7bd4924/attachment.bin>
More information about the llvm-commits
mailing list