]> granicus.if.org Git - llvm/commit
[X86] Teach -Os immediate sharing code to not count constant uses that will become...
authorCraig Topper <craig.topper@intel.com>
Sun, 25 Aug 2019 05:22:40 +0000 (05:22 +0000)
committerCraig Topper <craig.topper@intel.com>
Sun, 25 Aug 2019 05:22:40 +0000 (05:22 +0000)
commitf5d23835e6388da47d91729f1bba0a67e0c61ed2
treeecf3c76a266fb4fbf895a55415cbce34b6ab051d
parent2c2a6f865f5356744aeddbc4964d0a2074b38d13
[X86] Teach -Os immediate sharing code to not count constant uses that will become INC/DEC.

INC/DEC don't use an immediate so we don't need to count it. We
also shouldn't use the custom isel for it.

Fixes PR42998.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@369863 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86ISelDAGToDAG.cpp
test/CodeGen/X86/pr42998.ll