HomePhabricator

[X86] Teach -Os immediate sharing code to not count constant uses that will…

Authored by craig.topper on Aug 24 2019, 10:22 PM.

Description

[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.

llvm-svn: 369863

Details

Committed
craig.topperAug 24 2019, 10:22 PM
Parents
rG6e2776c9c404: [X86] Add test cases for PR42998. NFC
Branches
Unknown
Tags
Unknown