[LLVMdev] Preferring cast over seteq with 0

Eric Zimmerman ezimmerm at uiuc.edu
Thu May 19 13:27:02 PDT 2005


Is there a pass that will transform this:
  %cc = seteq ushort %val, 0    

into this:
  %cc = cast ushort %val to bool

Would instcombine be the logical place to do this?  

Thanks.




More information about the llvm-dev mailing list