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

[ValueTracking, InstCombine] extend isKnownToBeAPowerOfTwo() to handle vector splat constants

We could try harder to handle non-splat vector constants too, 
but that seems much rarer to me.

Note that the div test isn't resolved because there's a check
for isIntegerTy() guarding that transform.

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

llvm-svn: 270369
parent 4f3fe5b1
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment