[PATCH] D27714: [DAGCombiner] Use SelectionDAG::isKnownToBeAPowerOfTwo instead of just APInt::isPowerOf2

Simon Pilgrim via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Dec 14 07:18:40 PST 2016


This revision was automatically updated to reflect the committed changes.
Closed by commit rL289654: [DAGCombiner] Try to use SelectionDAG::isKnownToBeAPowerOfTwo instead of just… (authored by RKSimon).

Changed prior to commit:
  https://reviews.llvm.org/D27714?vs=81232&id=81378#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D27714

Files:
  llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
  llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
  llvm/trunk/test/CodeGen/X86/combine-sdiv.ll
  llvm/trunk/test/CodeGen/X86/combine-srem.ll
  llvm/trunk/test/CodeGen/X86/combine-udiv.ll
  llvm/trunk/test/CodeGen/X86/combine-urem.ll
  llvm/trunk/test/CodeGen/X86/urem-power-of-two.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D27714.81378.patch
Type: text/x-patch
Size: 24015 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20161214/85009a8b/attachment.bin>


More information about the llvm-commits mailing list