[x86] change free truncate hook to handle only simple types (PR42880)
authorSanjay Patel <spatel@rotateright.com>
Sat, 3 Aug 2019 21:46:27 +0000 (21:46 +0000)
committerSanjay Patel <spatel@rotateright.com>
Sat, 3 Aug 2019 21:46:27 +0000 (21:46 +0000)
commitc9171bd0a955b420d166eed29b22cc62676370af
tree357b0ff8daed9910837ead9af3252730a7125f2d
parent3c805d125a9b239a44ee95025b7665496855233b
[x86] change free truncate hook to handle only simple types (PR42880)

This avoids the crash from:
https://bugs.llvm.org/show_bug.cgi?id=42880
...and I think it's a proper constraint for the TLI hook.

But that example raises questions about what happens to get us
into this situation (created i29 types) and what happens later
(why does legalization die on those types), so I'm not sure if
we will resolve the bug based on this change.

llvm-svn: 367766
llvm/lib/Target/X86/X86ISelLowering.cpp
llvm/test/CodeGen/X86/shift-combine.ll