diff options
| author | Michael Kuperstein <michael.m.kuperstein@intel.com> | 2014-11-11 07:07:40 +0000 |
|---|---|---|
| committer | Michael Kuperstein <michael.m.kuperstein@intel.com> | 2014-11-11 07:07:40 +0000 |
| commit | 3fe15e498f2cf65354ffbc3a4193dba3551e12f6 (patch) | |
| tree | e5661bae7f7cdf3d635087e8042098d4b55e95cb /llvm/lib | |
| parent | f7b5ba06211a42707b755e9bb68b337921ee3962 (diff) | |
| download | bcm5719-llvm-3fe15e498f2cf65354ffbc3a4193dba3551e12f6.tar.gz bcm5719-llvm-3fe15e498f2cf65354ffbc3a4193dba3551e12f6.zip | |
[X86] Fix pattern match for 32-to-64-bit zext in the presence of AssertSext
This fixes an issue with matching trunc -> assertsext -> zext on x86-64, which would not zero the high 32-bits. See PR20494 for details.
Recommitting - This time, with a hopefully working test.
Differential Revision: http://reviews.llvm.org/D6128
llvm-svn: 221672
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/Target/X86/X86InstrCompiler.td | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Target/X86/X86InstrCompiler.td b/llvm/lib/Target/X86/X86InstrCompiler.td index bf25672b2f6..117b6ff2103 100644 --- a/llvm/lib/Target/X86/X86InstrCompiler.td +++ b/llvm/lib/Target/X86/X86InstrCompiler.td @@ -1191,6 +1191,7 @@ def def32 : PatLeaf<(i32 GR32:$src), [{ return N->getOpcode() != ISD::TRUNCATE && N->getOpcode() != TargetOpcode::EXTRACT_SUBREG && N->getOpcode() != ISD::CopyFromReg && + N->getOpcode() != ISD::AssertSext && N->getOpcode() != X86ISD::CMOV; }]>; |

