[X86] Move 's{hr,ar,hl} , <op>' to 'shift <op>' optimization in the assembler into...
authorCraig Topper <craig.topper@gmail.com>
Tue, 20 Oct 2020 21:17:07 +0000 (14:17 -0700)
committerCraig Topper <craig.topper@gmail.com>
Tue, 20 Oct 2020 22:20:46 +0000 (15:20 -0700)
commit702aae368a6d7744ea025c860c81f9df1da05b7f
treec2c538bdf7b8884cd662e645ed28e50a13acb497
parent9339ab30fbe4d564f570f38205aca683f2fbaffc
[X86] Move 's{hr,ar,hl} , <op>' to 'shift <op>' optimization in the assembler into processInstruction.

Instead of detecting the mnemonic and hacking the operands before
parsing. Just fix it up after parsing.
llvm/lib/Target/X86/AsmParser/X86AsmParser.cpp