Using a negation instead of a subtraction from a constant can save an
instruction on some targets.
Nothing much uses this until D77152 changes the translation of fshl and
fshr intrinsics.
Paths
| Differential D82539
[TargetLowering] Improve expansion of ROTL/ROTR ClosedPublic Authored by foad on Jun 25 2020, 3:57 AM.
Details
Summary Using a negation instead of a subtraction from a constant can save an Nothing much uses this until D77152 changes the translation of fshl and
Diff Detail
Unit TestsFailed Event Timelinefoad added a child revision: D77152: [SelectionDAG] Better legalization for FSHL and FSHR.Jun 25 2020, 4:00 AM This revision is now accepted and ready to land.Jul 3 2020, 10:30 AM Closed by commit rGe7a4a24dc50a: [TargetLowering] Improve expansion of ROTL/ROTR (authored by foad). · Explain WhyJul 6 2020, 4:26 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 273296 llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
|