When dead code elimination removes all but one use, try to fold the single def into...
authorJakob Stoklund Olesen <stoklund@2pi.dk>
Tue, 5 Apr 2011 20:20:26 +0000 (20:20 +0000)
committerJakob Stoklund Olesen <stoklund@2pi.dk>
Tue, 5 Apr 2011 20:20:26 +0000 (20:20 +0000)
commit3520019931c2bad615c35edcb943cd1e8582ebac
treefdabbc7819a058d00686f08c433459948fac35dc
parente050f50443eff5449016d5bd24bd9401685a227c
When dead code elimination removes all but one use, try to fold the single def into the remaining use.

Rematerialization can leave single-use loads behind that we might as well fold whenever possible.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128918 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/LiveRangeEdit.cpp
lib/CodeGen/LiveRangeEdit.h
test/CodeGen/X86/constant-pool-remat-0.ll