summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-04-28 21:03:16 +0000
committerChris Lattner <sabre@nondot.org>2007-04-28 21:03:16 +0000
commitde339fa55d910496fbcc3ed0c6409f11435045b8 (patch)
tree55bb0c81e3d17f173dca0a09d5fa28227a1146b5 /llvm/lib/CodeGen
parentb2e55562ed59025bfbbe9aa47339a8a322ccbeb2 (diff)
downloadbcm5719-llvm-de339fa55d910496fbcc3ed0c6409f11435045b8.tar.gz
bcm5719-llvm-de339fa55d910496fbcc3ed0c6409f11435045b8.zip
eliminate more redundant constraint type analysis
llvm-svn: 36546
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
index 43f5ab94d5a..1066d6c7c99 100644
--- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
@@ -3320,12 +3320,8 @@ void SelectionDAGLowering::visitInlineAsm(CallInst &I) {
switch (OpInfo.Type) {
case InlineAsm::isOutput: {
- TargetLowering::ConstraintType CTy = TargetLowering::C_RegisterClass;
- if (OpInfo.ConstraintCode.size() == 1) // not a physreg name.
- CTy = TLI.getConstraintType(OpInfo.ConstraintCode);
-
- if (CTy != TargetLowering::C_RegisterClass &&
- CTy != TargetLowering::C_Register) {
+ if (OpInfo.ConstraintType != TargetLowering::C_RegisterClass &&
+ OpInfo.ConstraintType != TargetLowering::C_Register) {
// Memory output, or 'other' output (e.g. 'X' constraint).
SDOperand InOperandVal = OpInfo.CallOperand;
OpenPOWER on IntegriCloud