Skip to content
Commit e438f2d8 authored by Juan Manuel MARTINEZ CAAMAÑO's avatar Juan Manuel MARTINEZ CAAMAÑO
Browse files

[DAGCombine] Do not fold SRA/SRL of MUL into MULH when MUL's LSB are

used, and MUL_LOHI is available

Folding into a sra(mul) / srl(mul) into a mulh introduces an extra
multiplication to compute the high half of the multiplication,
while it is more profitable to compute the high and lower halfs with a
single mul_lohi.

Differential Revision: https://reviews.llvm.org/D133768
parent f4ea3bd4
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment