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)
commit8eb05fd093b8e2878440e2b074b60d07e1d397d9
tree09b86c3d6c4fa1643809aff8e5d9eed1cf221d28
parenta40555826e1b970712a0a4e1704de71fb33136dd
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.

llvm-svn: 157162
llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
llvm/test/CodeGen/X86/pr12889.ll [new file with mode: 0644]