OSDN Git Service

Some minor cleanups:
authorChris Lattner <sabre@nondot.org>
Wed, 15 Oct 2008 05:07:36 +0000 (05:07 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 15 Oct 2008 05:07:36 +0000 (05:07 +0000)
commit160f6cc209068e5e2db6514a010d5a32cf28be4f
tree8e96dc5394c2aa7929e5c20e64563222efd0324c
parent45ac17f5213ee9ad080b9876578ffa49c61121a5
Some minor cleanups:
1. Compute action in X86SelectSelect based on MVT instead of type.
2. Use TLI.getValueType(..) instead of MVT::getVT(..) because the former
   handles pointers and the later doesn't.
3. Don't pass TLI into isTypeLegal, since it already has access to it as
   an ivar.

#2 gives fast isel some minor new functionality: handling load/stores of
pointers.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57552 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86FastISel.cpp