We can only fold a load into an op if there is exactly one use of the value.
authorChris Lattner <sabre@nondot.org>
Wed, 12 Jan 2005 18:38:26 +0000 (18:38 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 12 Jan 2005 18:38:26 +0000 (18:38 +0000)
commita0bb692b2702843fa4b60b271879d4b0102b8c91
treed1b9982181f3bc64e0340cd3c9e5b3e89ba33d06
parent5c884562279927757cbe0ae718ab18af730ddb35
We can only fold a load into an op if there is exactly one use of the value.
Checking to see if the load has two uses is not equivalent, as the chain
value may have zero uses.

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