Displaying 2 results from an estimated 2 matches for "dd59aa72".
2011 Feb 07
0
[LLVMdev] A small pass to constant fold branch conditions in destination blocks
...or example in
5759 lines of bitcode being removed from 403.gcc.
Ciao, Duncan.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Prop.cpp
Type: text/x-c++src
Size: 5959 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20110207/dd59aa72/attachment.cpp>
2011 Feb 07
7
[LLVMdev] A small pass to constant fold branch conditions in destination blocks
Hi all, I wrote a little pass (attached) which does the following: if it sees a
conditional branch instruction then it replaces all occurrences of the condition
in the true block with "true" and in the false block with "false". Well, OK, it
is a bit more sophisticated (and a bit more careful!) than that but you get the
idea. It will turn this
define i1 @t1(i1 %c) {
br