[PATCH] D30910: [SimplifyCFG] allow speculation of div/rem when sibling op exists (PR31028)
Filipe Cabecinhas via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 13 15:05:34 PDT 2017
filcab added inline comments.
================
Comment at: lib/Transforms/Utils/SimplifyCFG.cpp:1921
+ case Instruction::SRem: SiblingOpcode = Instruction::SDiv; break;
+ case Instruction::URem: SiblingOpcode = Instruction::UDiv; break;
+ default: return false;
----------------
Please make one test per pair, too.
https://reviews.llvm.org/D30910
More information about the llvm-commits
mailing list