]> granicus.if.org Git - llvm/commit
Re-apply r286384, "X86: Introduce the "relocImm" ComplexPattern, which represents...
authorPeter Collingbourne <peter@pcc.me.uk>
Wed, 9 Nov 2016 23:53:43 +0000 (23:53 +0000)
committerPeter Collingbourne <peter@pcc.me.uk>
Wed, 9 Nov 2016 23:53:43 +0000 (23:53 +0000)
commit027f4d03c6ed7406b0be1ccd6a9e1edd5c6a9e1c
treee8ca5201ca60fa76739098a042bde90b5285653a
parent619ca04281bd9458742c31db9cf43fc460c7fc6e
Re-apply r286384, "X86: Introduce the "relocImm" ComplexPattern, which represents a relocatable immediate.", with a fix for 32-bit x86.

Teach X86InstrInfo::analyzeCompare() not to crash on CMP and SUB instructions
that take a global address operand.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@286420 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Target/TargetSelectionDAG.td
lib/Target/X86/X86ISelDAGToDAG.cpp
lib/Target/X86/X86InstrCompiler.td
lib/Target/X86/X86InstrInfo.cpp
lib/Target/X86/X86InstrInfo.td
test/CodeGen/X86/compare-global.ll [new file with mode: 0644]
utils/TableGen/CodeGenDAGPatterns.cpp
utils/TableGen/CodeGenTarget.cpp
utils/TableGen/CodeGenTarget.h