summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/Sparc
diff options
context:
space:
mode:
authorFangrui Song <maskray@google.com>2019-12-29 15:53:46 -0800
committerFangrui Song <maskray@google.com>2019-12-29 16:50:42 -0800
commit5edb40c0220e80fc4cdb726d30d1d8b8e8580892 (patch)
treede4d76facba3a43fd169a68ae019ea66e9975690 /llvm/lib/Target/Sparc
parentb1fb07ddbaa539f9173e32dc27110168b165c1fe (diff)
downloadbcm5719-llvm-5edb40c0220e80fc4cdb726d30d1d8b8e8580892.tar.gz
bcm5719-llvm-5edb40c0220e80fc4cdb726d30d1d8b8e8580892.zip
[SelectionDAG] Disallow indirect "i" constraint
This allows us to delete InlineAsm::Constraint_i workarounds in SelectionDAGISel::SelectInlineAsmMemoryOperand overrides and TargetLowering::getInlineAsmMemConstraint overrides. They were introduced to X86 in r237517 to prevent crashes for constraints like "=*imr". They were later copied to other targets.
Diffstat (limited to 'llvm/lib/Target/Sparc')
-rw-r--r--llvm/lib/Target/Sparc/SparcISelDAGToDAG.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/llvm/lib/Target/Sparc/SparcISelDAGToDAG.cpp b/llvm/lib/Target/Sparc/SparcISelDAGToDAG.cpp
index e68f3d8ef9f..afb69899e72 100644
--- a/llvm/lib/Target/Sparc/SparcISelDAGToDAG.cpp
+++ b/llvm/lib/Target/Sparc/SparcISelDAGToDAG.cpp
@@ -380,7 +380,6 @@ SparcDAGToDAGISel::SelectInlineAsmMemoryOperand(const SDValue &Op,
SDValue Op0, Op1;
switch (ConstraintID) {
default: return true;
- case InlineAsm::Constraint_i:
case InlineAsm::Constraint_o:
case InlineAsm::Constraint_m: // memory
if (!SelectADDRrr(Op, Op0, Op1))
OpenPOWER on IntegriCloud