>
>> and code should be added to
>> ConstantFolding.cpp in the setne(&GV, null)/seteq(&GV, null) codepath
>> to handle this.
>
> Which code path?  You mean you generally want a setne(&GV, null) to be
> folded to ConstBool::True and seteq(&GV, null) to be folded to
> ConstBool::False ?

Yep exactly.  Unless the global is external weak.

-Chris

_______________________________________________
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits

Reply via email to