Example:
fshl((A & 255), (B), BW - 8) -> shr(B, 8)
Differential D60660
[InstCombine] Prune fshl/fshr with masked operands shawnl on Apr 13 2019, 6:15 PM. Authored by
Details Example: fshl((A & 255), (B), BW - 8) -> shr(B, 8)
Diff Detail
Event TimelineComment Actions The idea here looks reasonable to me, but this doesn't seem like the right place to make the transform. This is ultimately a demanded bits problem and as such should be handled in either BDCE or InstCombineSimplifyDemanded.
Comment Actions Actually all the necessary support is already in place here, all you need to do is call SimplifyDemandedInstructionBits(): if (SimplifyDemandedInstructionBits(*II)) return &CI; Comment Actions Please upload all patches with full context (-U99999)
Comment Actions Please can you place the original tests in a *new* differential,
|
This should probably be at the top level of whatever function this is.
Not sure where in the function though.