diff options
author | Chris Lattner <sabre@nondot.org> | 2009-12-22 19:33:28 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-12-22 19:33:28 +0000 |
commit | aadadb3973bb202cd4d2e20e842588162e780f13 (patch) | |
tree | 90508ffd07e8b4e9a8d4fe54cc4f16c88441cb91 /lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp | |
parent | 97eee027f980464fde0a9374fa90bac6a771c4dc (diff) |
Fix the Convert to scalar to not insert dead loads in the store case. The
load is needed when we have a small store into a large alloca (at which
point we get a load/insert/store sequence), but when you do a full-sized
store, this load ends up being dead.
This dead load is bad in really large nasty testcases where the load ends
up causing mem2reg to insert large chains of dependent phi nodes which only
ADCE can delete. Instead of doing this, just don't insert the dead load.
This fixes rdar://6864035
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91917 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp')
0 files changed, 0 insertions, 0 deletions