[LLVMdev] lower select pass

Tim Sander tim01 at iss.tu-darmstadt.de
Mon Dec 21 16:21:08 PST 2009


Well, its been quite some time... hope your are all as well as you have been 
more than a year ago. 

It just happend to be that i wrote a small pass (albeit for 2.5) which  
removes the select instructions which had not been there in 2.2 8-/.
Since they made my bitrotting backend sad i had to find a way to get rid of 

The attached pass is slighly inspired (concerning the skeleton) by the lower 
switch pass. It simply replaces the select instruction with a branch to to 
dummy blocks which in turn unconditionally branch back to "tail" block which 
contains the remaining instructions (guarded of course by a phi node).

Attached is also my small testdirectory (which is sadly not a real test).

It would nice if this pass would find its way to mainline.

I would also like this place to thank Tilmann, Nicholas and Daniel for their 
great support via IRC.

Best regards
-------------- next part --------------
A non-text attachment was scrubbed...
Name: lower_select.patch
Type: text/x-patch
Size: 6835 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20091222/3a5300bf/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test_lowerselect.tar.gz
Type: application/x-compressed-tar
Size: 557 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20091222/3a5300bf/attachment-0001.bin>

More information about the llvm-dev mailing list