[PATCH] D19509: Add optimization bisect opt-in calls for Hexagon passes

Andy Kaylor via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 25 16:10:51 PDT 2016


andrew.w.kaylor created this revision.
andrew.w.kaylor added a reviewer: kparzysz.
andrew.w.kaylor added a subscriber: llvm-commits.
andrew.w.kaylor set the repository for this revision to rL LLVM.

This patch adds calls to Hexagon-specific passes that can be safely skipped to opt-in to the optimization bisect mechanism.

I selected the passes to be skipped based on the fact that they were not added at CodeGenOpt::None in HexagonTargetMachine.cpp.  Based on that criteria, I did not add opt-in calls to the following passes, which appear to be required:

HexagonBranchRelaxation
HexagonCallFrameInformation
HexagonCopyToCombine
HexagonSplitConst32AndConst64


Note that the call to skipFunction() will also check for the "optnone" function attribute, so this can theoretically result in passes being skipped even when optimization bisect is not being done. However, I believe that any pass that can be safely skipped should be skipped for functions with the optnone attribute.

See D19172 for details on the base optimizaton bisect implementation.

Repository:
  rL LLVM

http://reviews.llvm.org/D19509

Files:
  lib/Target/Hexagon/HexagonBitSimplify.cpp
  lib/Target/Hexagon/HexagonCFGOptimizer.cpp
  lib/Target/Hexagon/HexagonCommonGEP.cpp
  lib/Target/Hexagon/HexagonEarlyIfConv.cpp
  lib/Target/Hexagon/HexagonExpandCondsets.cpp
  lib/Target/Hexagon/HexagonFixupHwLoops.cpp
  lib/Target/Hexagon/HexagonGenExtract.cpp
  lib/Target/Hexagon/HexagonGenInsert.cpp
  lib/Target/Hexagon/HexagonGenMux.cpp
  lib/Target/Hexagon/HexagonGenPredicate.cpp
  lib/Target/Hexagon/HexagonHardwareLoops.cpp
  lib/Target/Hexagon/HexagonNewValueJump.cpp
  lib/Target/Hexagon/HexagonOptimizeSZextends.cpp
  lib/Target/Hexagon/HexagonPeephole.cpp
  lib/Target/Hexagon/HexagonRDFOpt.cpp
  lib/Target/Hexagon/HexagonSplitDouble.cpp
  lib/Target/Hexagon/HexagonStoreWidening.cpp
  lib/Target/Hexagon/HexagonVLIWPacketizer.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D19509.54937.patch
Type: text/x-patch
Size: 9025 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160425/38abef06/attachment.bin>


More information about the llvm-commits mailing list