[CodeGenPrepare] Fix the check of the legality of an instruction.
authorQuentin Colombet <qcolombet@apple.com>
Sat, 22 Feb 2014 01:06:41 +0000 (01:06 +0000)
committerQuentin Colombet <qcolombet@apple.com>
Sat, 22 Feb 2014 01:06:41 +0000 (01:06 +0000)
commita6e734d2ed962c914005e9a5fe8a14fbc9707884
tree506758f9d42a7cd52bcdd17f3c36e782ab228066
parentc94f3ae0278dc781cd60051790bf8a8003a13873
[CodeGenPrepare] Fix the check of the legality of an instruction.
The API expects an ISD opcode, not an IR opcode.
Fixes a regression for R600.

Related to <rdar://problem/15519855>.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@201923 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CodeGenPrepare.cpp
test/CodeGen/R600/codegen-prepare-addrmode-sext.ll