Skip to content
Commit f39f42d3 authored by Sanjay Patel's avatar Sanjay Patel
Browse files

[SelectionDAG] rename/move isKnownToBeAPowerOfTwo() from TargetLowering (NFC)

There are at least 2 places (DAGCombiner, X86ISelLowering) where this could be used instead
of ad-hoc and watered down code that is trying to match a power-of-2 pattern.

Differential Revision: http://reviews.llvm.org/D20439

llvm-svn: 270073
parent 6feebe98
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment