[PATCH] D45272: [UpdateTestChecks] Add update_analyze_test_checks.py for cost model analysis generation

Simon Pilgrim via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 4 10:54:25 PDT 2018


RKSimon created this revision.
RKSimon added reviewers: MaskRay, spatel, craig.topper, andreadb, gbedwell.

The script allows the auto-generation of checks for cost model tests to speed up their creation and help improve coverage, which will help a lot with PR36550.

I've branched this from update_test_checks.py - as can be seen, the diff is quite small but I wasn't sure if we wanted to have a script that tried to handle both analysis and ir in the same test files or not?

If the need arises we can add support for other analyze passes as well, but the cost models was the one I needed to get done - at the moment it just warns that its unsupported.

I've regenerated a couple of x86 test files to show the effect.


Repository:
  rL LLVM

https://reviews.llvm.org/D45272

Files:
  test/Analysis/CostModel/X86/arith-fp.ll
  test/Analysis/CostModel/X86/arith.ll
  utils/UpdateTestChecks/common.py
  utils/update_analyze_test_checks.py

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D45272.140994.patch
Type: text/x-patch
Size: 234861 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180404/65760fb4/attachment-0001.bin>


More information about the llvm-commits mailing list