[PATCH] If a conditional branch jumps to the same target, remove the condition
hfinkel at anl.gov
hfinkel at anl.gov
Tue Mar 10 13:43:27 PDT 2015
LGTM. But, could you also please fix llvm::ConstantFoldTerminator in lib/Transforms/Utils/Local.cpp so that it handles the undef condition and transforms the branch with the undef condition into an unconditional branch. If we don't want to do that, then we should just pick true/false here instead of using undef.
http://reviews.llvm.org/D8220
EMAIL PREFERENCES
http://reviews.llvm.org/settings/panel/emailpreferences/
More information about the llvm-commits
mailing list