Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Instead of eventually potentially duplicating the entirety of ConstantExpr methods,
i wonder if we can get away with an inverse of Constant::replaceUndefsWith(),
that takes two constants, and does an element-wise or'ing of undefs,
i.e. the LHS constant gets all the additional undefs that the RHS constant has.
Comment Actions
Perfect, LGTM.
llvm/include/llvm/IR/Constant.h | ||
---|---|---|
208 | I'm having trouble parsing the first line. | |
llvm/lib/IR/Constants.cpp | ||
743 | Nit: drop braces | |
763–766 | You probably want if (!match(NewC[I], m_Undef()) && match(OtherEltC, m_Undef())) { NewC[I] = OtherEltC; FoundExtraUndef = true; } otherwise you set FoundExtraUndef even if LHS already was undef. |
I'm having trouble parsing the first line.
I guess it talks about vector element undefs and scalar undefs, but it's hard go get that.