[CodeGenPrepare] Teach the addressing mode matcher how to promote zext.
authorQuentin Colombet <qcolombet@apple.com>
Thu, 11 Sep 2014 21:22:14 +0000 (21:22 +0000)
committerQuentin Colombet <qcolombet@apple.com>
Thu, 11 Sep 2014 21:22:14 +0000 (21:22 +0000)
commitdcc0e7eaa12e0005a8eb8a92d1500129dced6153
tree83b4c151e1814b85dac6c297d44565103429d713
parent85d436d90aeabaaa3649918a7146002a45e8bcc6
[CodeGenPrepare] Teach the addressing mode matcher how to promote zext.
I.e., teach it about 'sext (zext a to ty) to ty2' => zext a to ty2.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@217629 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CodeGenPrepare.cpp
test/CodeGen/X86/codegen-prepare-addrmode-sext.ll