[CodeGenPrepare][AddressingModeMatcher] Fix a think-o for the sext(zext) -> zext...
authorQuentin Colombet <qcolombet@apple.com>
Mon, 15 Sep 2014 18:26:58 +0000 (18:26 +0000)
committerQuentin Colombet <qcolombet@apple.com>
Mon, 15 Sep 2014 18:26:58 +0000 (18:26 +0000)
commit49e423ca30f4746949bbad734b8a6152d792d8bb
treef40661b027b4949cbdf13da5c4b68156e5ed0581
parent348e9e7b6dd3b1bee6e91009b7ea7956114ad53a
[CodeGenPrepare][AddressingModeMatcher] Fix a think-o for the sext(zext) -> zext promotion
introduced in r217629.
We were returning the old sext instead of the new zext as the promoted instruction!

Thanks Joerg Sonnenberger for the test case.

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