[X86] Explicitly list all the always trivially rematerializable instructions.
authorCraig Topper <craig.topper@intel.com>
Fri, 30 Aug 2019 00:54:36 +0000 (00:54 +0000)
committerCraig Topper <craig.topper@intel.com>
Fri, 30 Aug 2019 00:54:36 +0000 (00:54 +0000)
commit160ed4cab4e1f25f2d6668d691577abab651f2d8
tree30b79fc0e837026ba903f45db7017446019e9668
parentbe638099a476840596d8df3c1361b8ed1fb45ec4
[X86] Explicitly list all the always trivially rematerializable instructions.

Add a default with an llvm_unreachable for anything we don't expect.

This seems safer that just blindly returning true for anything
missing from the switch.

llvm-svn: 370424
llvm/lib/Target/X86/X86InstrInfo.cpp