[X86] Determine if we have an OpaqueSPAdjustment earlier
authorDavid Majnemer <david.majnemer@gmail.com>
Tue, 5 Jan 2016 17:46:36 +0000 (17:46 +0000)
committerDavid Majnemer <david.majnemer@gmail.com>
Tue, 5 Jan 2016 17:46:36 +0000 (17:46 +0000)
commit6ea7b5b53b7bd4e72b540992b8fa5bd183e70250
tree7640221a742e5a2de76837b99fa071755450a278
parent024ff64164bd3944f0ff54061cb3ff9675b9cc06
[X86] Determine if we have an OpaqueSPAdjustment earlier

We queried hasFP before we hit ExpandISelPseudos.  ExpandISelPseudos
manipulated state that hasFP relied on, potentially changing the result
after it has been queried elsewhere.

While I am not aware of any particular bug due to this state of affairs,
it seems best to avoid it entirely by changing the state during DAG
construction.

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