[PATCH] D14596: [SROA] Choose more profitable type in findCommonType
Guozhi Wei via llvm-commits
llvm-commits at lists.llvm.org
Wed Dec 30 16:46:58 PST 2015
Carrot updated this revision to Diff 43814.
Carrot added a comment.
This updated patch improves inst combine pass to handle following bitcast case
TyA -> TyB bitcast
TyB -> TyA bitcast
The optimized code can skip the two bitcast operations, and use TyA directly in later instructions.
A test case is also added.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 6819 bytes
Desc: not available
More information about the llvm-commits