OSDN Git Service

[TargetLowering] Use ISD::FSHR in expandFixedPointMul
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Fri, 8 Feb 2019 18:57:38 +0000 (18:57 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Fri, 8 Feb 2019 18:57:38 +0000 (18:57 +0000)
commitd5cf0c957e9b64b1bf65f5aa3e866378aec2639b
treefa0c86558a421b285e97850c2680e415b6573ce4
parent2108af5551165b4d69c05922173d7cd617c028c6
[TargetLowering] Use ISD::FSHR in expandFixedPointMul

Replace OR(SHL,SRL) pattern with ISD::FSHR (legalization expands this later if necessary) - this helps with the scale == 0 'undefined' drop-through case that was discussed on D55720.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@353546 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/TargetLowering.cpp
test/CodeGen/X86/umul_fix.ll