[llvm-commits] CVS: llvm/lib/VMCore/ConstantFolding.cpp
Chris Lattner
clattner at apple.com
Thu Nov 30 18:09:56 PST 2006
>
>> 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
More information about the llvm-commits
mailing list