RKSimon added a comment. Slightly beyond the scope of this patch, but would it be realistic to support non-constant cases? I know at present m_Power2 can't handle this CHANGES SINCE LAST ACTION https://reviews.llvm.org/D67334/new/ https://reviews.llvm.org/D67334