Initilize the machine LICM CSE map upon the first time an instruction is hoisted to
authorEvan Cheng <evan.cheng@apple.com>
Mon, 2 Nov 2009 08:09:49 +0000 (08:09 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Mon, 2 Nov 2009 08:09:49 +0000 (08:09 +0000)
commit72ed88feacb989831581f2c71176a68fcdba4b67
treeb9108fe6f86ff98649b50e9b93dcd7fd18a7edf7
parentd3e18fad7e7c6839a3d343f77957a488754d06b6
Initilize the machine LICM CSE map upon the first time an instruction is hoisted to
the loop preheader. Add instructions which are already in the preheader block that
may be common expressions of those that are hoisted out. These does get a few more
instructions CSE'ed.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85799 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/MachineLICM.cpp
test/CodeGen/ARM/remat.ll
test/CodeGen/X86/2007-11-30-LoadFolding-Bug.ll