https://bugs.llvm.org/show_bug.cgi?id=43177
Bug ID: 43177
Summary: [SelectionDAG] Rename/refactor isBuildVectorAllZeros
isBuildVectorAllOnes to make undef handling more
obvious
Product: libraries
Version: trunk
Hardware: PC
OS: Windows NT
Status: NEW
Severity: enhancement
Priority: P
Component: Common Code Generator Code
Assignee: unassignedb...@nondot.org
Reporter: llvm-...@redking.me.uk
CC: craig.top...@gmail.com, lebedev...@gmail.com,
llvm-bugs@lists.llvm.org, spatel+l...@rotateright.com
We keep hitting issues with people not realising that these predicates can
contain some (but not all) elements that are undef. e.g. [Bug #43159]
These keep getting used in patterns like:
// fold (mul x, 0) -> 0
if (ISD::isBuildVectorAllZeros(N0.getNode())
return N0;
Should we rename these to isBuildVectorAllZerosOrUndefs or similar? Or is there
something else we can do to help avoid this?
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs