Merge commit 46673763f from llvm git (by Craig Topper):
[X86] Place new constant node in topological order in X86DAGToDAGISel::matchBitExtract Fixes PR47482
This should fix 'Assertion failed: (Op->getNodeId() != -1 && "Node has
already selected predecessor node"), function DoInstructionSelection,
file
/usr/src/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp,
line 1149' when compiling part of the project_painter project, while
targeting the bdver2 (or higher) CPU.
Reported by: jkim
MFC after: 6 weeks
X-MFC-With: r364284
(cherry picked from commit 82bf979d530ecad0bc43231a77d9f1a67df53f11)