[X86] Stop using UpdateNodeOperands in combineGatherScatter. Create new nodes like...
authorCraig Topper <craig.topper@intel.com>
Sat, 28 Sep 2019 01:08:46 +0000 (01:08 +0000)
committerCraig Topper <craig.topper@intel.com>
Sat, 28 Sep 2019 01:08:46 +0000 (01:08 +0000)
commit82a707e94175bf9569f4dd0c0adda094ac046662
tree412227a9146e5abeab0583957e92ac094c91a6e0
parent22984ebd0ec18a262a1c7340db800fd5d3b95025
[X86] Stop using UpdateNodeOperands in combineGatherScatter. Create new nodes like most other DAG combines.

Creating new nodes is what we usually do. Have to explicitly
check that we don't update to an existing node and having
to manually manage the worklist is unusual.

We can probably add a helper function to reduce the duplication
of having to check if we should create a gather or scatter, but
I wanted to just get the simple thing done.

llvm-svn: 373137
llvm/lib/Target/X86/X86ISelLowering.cpp