Fix isa<> check which could never be true.
authorPete Cooper <peter_cooper@apple.com>
Fri, 22 Feb 2013 01:50:38 +0000 (01:50 +0000)
committerPete Cooper <peter_cooper@apple.com>
Fri, 22 Feb 2013 01:50:38 +0000 (01:50 +0000)
commit047f81a5dfe84dab8968f7f45a401bd643b27dd8
tree08994ee156ba8a9c79554503a6f1f144f50dd0f5
parenta3bb2b604422789a452d4b269061ad23e96729f7
Fix isa<> check which could never be true.

It was incorrectly checking a Function* being an IntrinsicInst* which
isn't possible.  It should always have been checking the CallInst* instead.

Added test case for x86 which ensures we only get one constant load.
It was 2 before this change.

rdar://problem/13267920

llvm-svn: 175853
llvm/lib/CodeGen/SelectionDAG/FastISel.cpp
llvm/test/CodeGen/X86/fast-isel-constant.ll [new file with mode: 0644]