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

Amy Kwan via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 16 10:31:36 PDT 2025


https://github.com/amy-kwan commented:

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?

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


More information about the llvm-commits mailing list