[PATCH] [LSR] canonicalize Prod*(1<<C) to Prod<<C
Jingyue Wu
jingyue at google.com
Mon Jun 15 10:49:54 PDT 2015
================
Comment at: lib/Analysis/ScalarEvolutionExpander.cpp:791
@@ -784,3 +790,3 @@
const APInt &RHS = SC->getValue()->getValue();
if (RHS.isPowerOf2())
return InsertBinop(Instruction::LShr, LHS,
----------------
Btw, visitUDivExpr does similar canonicalization too.
http://reviews.llvm.org/D10448
EMAIL PREFERENCES
http://reviews.llvm.org/settings/panel/emailpreferences/
More information about the llvm-commits
mailing list