Revert rL357745: [SelectionDAG] Compute known bits of CopyFromReg
commit45a375eb6b1c03371d7608c9d9f42a146b04d079
authorDavid Green <david.green@arm.com>
Wed, 10 Apr 2019 18:00:41 +0000 (10 18:00 +0000)
committerDavid Green <david.green@arm.com>
Wed, 10 Apr 2019 18:00:41 +0000 (10 18:00 +0000)
tree78f63cffb178c768bbc35d6bcb01d7bbe0af5dd8
parent12041c1bc882b017093a27f44df833ba4f2f0409
Revert rL357745: [SelectionDAG] Compute known bits of CopyFromReg

Certain optimisations from ConstantHoisting and CGP rely on Selection DAG not
seeing through to the constant in other blocks. Revert this patch while we come
up with a better way to handle that.

I will try to follow this up with some better tests.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@358113 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/SelectionDAG.cpp
lib/Target/X86/X86ISelLowering.cpp
test/CodeGen/AMDGPU/llvm.amdgcn.s.buffer.load.ll
test/CodeGen/ARM/atomic-op.ll
test/CodeGen/PowerPC/pr35688.ll
test/CodeGen/SystemZ/subregliveness-04.ll
test/CodeGen/X86/fold-tied-op.ll
test/CodeGen/X86/pr28444.ll