[PATCH] CSE on GEP indices
jingyue at google.com
Thu Apr 24 22:51:26 PDT 2014
all comments addressed. PTAL
ConstantOffsetExtractor::find now traces into two more operators: sext and zext. For safety, we only traces into sext/zext when its operand is guaranteed not to overflow. e.g., we can safely transform "sext (add nsw a, 5)" into "add nsw (sext a), 5".
Added a new unit test in split-gep.ll to test the above transformation.
Passed "make -C test".
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 35271 bytes
Desc: not available
More information about the llvm-commits