As for a testcase: I couldn't create a test with any no in-tree target where the undef reads wouldn't be optimized away earlier. REPOSITORY rL LLVM http://reviews.llvm.org/D10470 EMAIL PREFERENCES http://reviews.llvm.org/settings/panel/emailpreferences/