OSDN Git Service

SDAG: Stop relying on Select's return value in SystemZ's splitLargeImmediate. NFC
authorJustin Bogner <mail@justinbogner.com>
Mon, 9 May 2016 23:54:23 +0000 (23:54 +0000)
committerJustin Bogner <mail@justinbogner.com>
Mon, 9 May 2016 23:54:23 +0000 (23:54 +0000)
commit6d523e1b0e17141ca3a77f4ac770ed654a7601e6
tree55accd84524fa8805e9539cb3165992811abe7fd
parent3d09da35386e6cb9a9c025968350e022e9d85fbf
SDAG: Stop relying on Select's return value in SystemZ's splitLargeImmediate. NFC

The call to Select on Upper here happens in an unusual order in order
to defeat the constant folding that getNode() does. Add a comment
explaining why we can't just move the Select to later to avoid a
Handle, and wrap the call to SelectCode in a handle so we don't need
its return value.

This is part of the work to have Select return void instead of an
SDNode *, which is in turn part of llvm.org/pr26808.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@268990 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/SystemZ/SystemZISelDAGToDAG.cpp