]> granicus.if.org Git - llvm/commit
[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)
commitf5088332d0b5abce4acb99f883ba3a4f1033e46c
tree51f0b7e6222c282750164080d29db27a056cd3b6
parent056d51bf2f5ab521fc0005caa50820e286355a75
[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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@373137 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86ISelLowering.cpp