Move zext and sext casts fed by loads into the same block as the
authorDan Gohman <gohman@apple.com>
Fri, 16 Oct 2009 20:59:35 +0000 (20:59 +0000)
committerDan Gohman <gohman@apple.com>
Fri, 16 Oct 2009 20:59:35 +0000 (20:59 +0000)
commitb00f236b03ea57520f94823780896ebdbc5d8bdc
treed023b7481f8606f36efb2bf30f796d830a7eb2f3
parenta43d46f523dff4b784ee28a3b196a065a15d90f2
Move zext and sext casts fed by loads into the same block as the
load, to help SelectionDAG fold them into the loads, unless
conditions are unfavorable.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84271 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/CodeGenPrepare.cpp
test/CodeGen/X86/codegen-prepare-extload.ll [new file with mode: 0644]
test/CodeGen/X86/stack-color-with-reg.ll