When legalising shifts, do not pre-build a list of operands which
authorPeter Collingbourne <peter@pcc.me.uk>
Sun, 20 May 2012 18:36:15 +0000 (18:36 +0000)
committerPeter Collingbourne <peter@pcc.me.uk>
Sun, 20 May 2012 18:36:15 +0000 (18:36 +0000)
commit92d63ccfc7d86d39bc0b806bf7e9fac13dd2d7b5
treedd54a97aa7ece95c867f6687f03d9fa88361fc6a
parent5875c33746a86c4596b3039768889680ff4f5752
When legalising shifts, do not pre-build a list of operands which
may be RAUW'd by the recursive call to LegalizeOps; instead, retrieve
the other operands when calling UpdateNodeOperands.  Fixes PR12889.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@157162 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
test/CodeGen/X86/pr12889.ll [new file with mode: 0644]