[PATCH] D18679: Port demanded-bits to the new pass manager

Michael Kuperstein via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 31 17:22:30 PDT 2016


mkuper created this revision.
mkuper added reviewers: joker.eph, jmolloy, hfinkel.
mkuper added subscribers: llvm-commits, chandlerc.
Herald added a subscriber: mzolotukhin.

My first stab at this, so I may have gotten it horribly wrong, especially since this is a lazy pass.
I've preserved the way in which it is currently lazy, but any better suggestions are welcome. 

Also, I'm not sure about the Optional<> result. And there's the somewhat ugly mutable member, but that's just instead of having the const_cast in the previous version. James, I think you introduced that, if you prefer to go back to the const_cast, I don't mind.

(I wanted to try to port something simple just to see how this works, and BDCE looked liked it ought to be simple enough - but it relies on DemandedBits, so...)

http://reviews.llvm.org/D18679

Files:
  include/llvm/Analysis/DemandedBits.h
  include/llvm/Analysis/VectorUtils.h
  include/llvm/InitializePasses.h
  lib/Analysis/Analysis.cpp
  lib/Analysis/DemandedBits.cpp
  lib/Analysis/VectorUtils.cpp
  lib/Passes/PassBuilder.cpp
  lib/Passes/PassRegistry.def
  lib/Transforms/Scalar/BDCE.cpp
  lib/Transforms/Vectorize/LoopVectorize.cpp
  lib/Transforms/Vectorize/SLPVectorizer.cpp
  test/Analysis/DemandedBits/basic.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D18679.52314.patch
Type: text/x-patch
Size: 20092 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160401/11f55b01/attachment.bin>


More information about the llvm-commits mailing list