[PATCH] [X86] Fix pattern match for 32-to-64-bit zext in the presence of AssertSext

Michael Kuperstein michael.m.kuperstein at intel.com
Thu Nov 6 01:36:30 PST 2014


Shortened the testcase and changed the name.
I think checking for a mov with the specific registers is the right thing to do, as the registers are determined by the ABI - the function parameter must come in ecx, and the ret value must go to eax.
Nadav, if you think that's too specific, let me know.

Michael

http://reviews.llvm.org/D6128

Files:
  lib/Target/X86/X86InstrCompiler.td
  test/CodeGen/X86/TruncAssertZext.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D6128.15845.patch
Type: text/x-patch
Size: 1108 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20141106/69be8634/attachment.bin>


More information about the llvm-commits mailing list