[PATCH] D31194: [InstSimplify] Try to Constant Fold the Instruction before simplification
Joey Gouly via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Mar 21 10:16:33 PDT 2017
joey created this revision.
Call ConstantFoldInstruction before trying any other simplification.
test/Analysis/ConstantFolding/gep-constanfolding-error.ll has a regex because there is a difference in the integer types after old/new GVN.
test/Transforms/InstSimplify/vector_gep.ll, I am unsure why the indices for the vector are turned into i64.
Noticed a change in IR after r276727 (e37fa0be6d80d863647db12f0d8e8c7d62bf6f3d).
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 9316 bytes
Desc: not available
More information about the llvm-commits