]> granicus.if.org Git - llvm/commit
ARM: Use a Handle to track SDNodes in case they're CSE'd. NFC
authorJustin Bogner <mail@justinbogner.com>
Thu, 5 May 2016 01:43:49 +0000 (01:43 +0000)
committerJustin Bogner <mail@justinbogner.com>
Thu, 5 May 2016 01:43:49 +0000 (01:43 +0000)
commit18c56b7da0eaa3dc5036e7440cf4c7bec06de9db
tree37bf6601efc5702aafb25dd338c25ca69bc5c3d1
parent8c98d3439525c0150661ddfb3a556ba1dc62d795
ARM: Use a Handle to track SDNodes in case they're CSE'd. NFC

The code here is recursively Select-ing a new Node to avoid issues
where N is CSE'd during replaceDAGValue and stops being valid. We can
accomplish the same goal in a more principled way by using a
HandleSDNode.

This is essentially a less dodgy fix for PR25733 than the original
attempt back in r255120.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@268590 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/ARM/ARMISelDAGToDAG.cpp