[PATCH] D77524: [TargetPassConfig] Add CanonicalizeFreezeInLoops before LSR

Juneyoung Lee via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Apr 5 23:57:43 PDT 2020


aqjune created this revision.
aqjune added reviewers: spatel, efriedma.
Herald added subscribers: llvm-commits, hiraditya.
Herald added a project: LLVM.
aqjune added a parent revision: D77523: Add CanonicalizeFreezeInLoops pass.

This patch adds CanonicalizeFreezeInLoops before LSR.
Relevant patch: https://reviews.llvm.org/D77523


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D77524

Files:
  llvm/lib/CodeGen/TargetPassConfig.cpp


Index: llvm/lib/CodeGen/TargetPassConfig.cpp
===================================================================
--- llvm/lib/CodeGen/TargetPassConfig.cpp
+++ llvm/lib/CodeGen/TargetPassConfig.cpp
@@ -639,6 +639,7 @@
 
   // Run loop strength reduction before anything else.
   if (getOptLevel() != CodeGenOpt::None && !DisableLSR) {
+    addPass(createCanonicalizeFreezeInLoopsPass());
     addPass(createLoopStrengthReducePass());
     if (PrintLSR)
       addPass(createPrintFunctionPass(dbgs(), "\n\n*** Code after LSR ***\n"));


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D77524.255227.patch
Type: text/x-patch
Size: 533 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200406/38c9eeab/attachment.bin>


More information about the llvm-commits mailing list