[PATCH] D64354: [AArch64][GlobalISel] Optimize conditional branches followed by unconditional branches
Aditya Nandakumar via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 8 20:36:16 PDT 2019
aditya_nandakumar added a comment.
Unless others have comments, this looks good to go in to me.
================
Comment at: llvm/lib/CodeGen/GlobalISel/CombinerHelper.cpp:392
+ CmpInst::Predicate InversePred = CmpInst::getInversePredicate(
+ (CmpInst::Predicate)CmpMI->getOperand(1).getPredicate());
+
----------------
Orthogonal to this patch - I've found that MachineOperand::getPredicate returning an unsigned and users having to explicitly cast to Predicate is a little annoying. What do you think of getPredicate returning Predicate type (in a separate patch)? In my use cases I've almost never used the unsigned value without casting to Predicate.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D64354/new/
https://reviews.llvm.org/D64354
More information about the llvm-commits
mailing list