[PATCH] D84047: [CodeGen][TargetPassConfig] Add TargetTransformInfo pass correctly

Eugene Leviant via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 17 09:51:02 PDT 2020


evgeny777 created this revision.
evgeny777 added reviewers: efriedma, MaskRay, atrick, bogner.
Herald added subscribers: jfb, hiraditya.
Herald added a project: LLVM.

When -start-after or -start-before is given tti pass is added with default TargetTransformInfo and LSR (probably other passes also) fails to make some optimizations. This also makes it impossible to properly analyze codegen pipeline, because in the example below `foo.s` and `bar.s` will almost always be different:

  llc -O3 foo.ll -o foo.s



  llc -O3 -stop-after=<pass> foo.ll -o foo.mir
  llc -O3 -start-after=<pass> foo.mir -o bar.s


https://reviews.llvm.org/D84047

Files:
  llvm/lib/CodeGen/TargetPassConfig.cpp
  llvm/test/CodeGen/AArch64/partial-pipeline-execution.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D84047.278811.patch
Type: text/x-patch
Size: 4693 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200717/f443d707/attachment.bin>


More information about the llvm-commits mailing list