[PATCH] D26495: [simplifycfg][loop-simplify] Preserve loop metadata in 2 transformations.

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 10 02:55:10 PST 2016


fhahn created this revision.
fhahn added reviewers: rnk, chandlerc.
fhahn added a subscriber: llvm-commits.

insertUniqueBackedgeBlock in lib/Transforms/Utils/LoopSimplify.cpp now
propagates existing llvm.loop metadata to newly the added backedge.

llvm::TryToSimplifyUncondBranchFromEmptyBlock in lib/Transforms/Utils/Local.cpp
now propagates existing llvm.loop metadata to the branch instructions in the
predecessor blocks of the empty block that is removed.


https://reviews.llvm.org/D26495

Files:
  lib/Transforms/Utils/Local.cpp
  lib/Transforms/Utils/LoopSimplify.cpp
  test/Transforms/LoopSimplify/preserve-llvm-loop-metadata.ll
  test/Transforms/SimplifyCFG/preserve-llvm-loop-metadata.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D26495.77462.patch
Type: text/x-patch
Size: 5195 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20161110/f20c6c96/attachment.bin>


More information about the llvm-commits mailing list