[PATCH] D20847: BitCast infinite loop fix
Guozhi Wei via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 10 16:22:45 PDT 2016
Carrot added a comment.
optimizeBitCastFromPhi only generates BitCast for load/store instructions, and BitCast with load/store instructions can easily be handled by InstCombineLoadStoreAlloca.cpp. So one solution to the problem is if all users of a CI are load/store instructions, we should not do optimizeBitCastFromPhi on it.
Repository:
rL LLVM
https://reviews.llvm.org/D20847
More information about the llvm-commits
mailing list