[llvm] [SelectionDAG] Propagate poison in getNode with two operands if the input is poison. (PR #135387)

zhijian lin via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 16 12:16:39 PDT 2025


diggerlin wrote:

> I think overall LGTM, but a question regarding the description:
> 
> > Propagation to poison in function SDValue SelectionDAG::getNode(unsigned Opcode, const SDLoc &DL, EVT VT,SDValue N1, SDValue N2, const SDNodeFlags Flags)  if N2 is poison.
> 
> It doesn't need to be N2, right? Just as long as one of them is poison?

changed , thanks

https://github.com/llvm/llvm-project/pull/135387


More information about the llvm-commits mailing list