[PATCH] D30469: [PowerPC] Expand compare instructions to equivalent GPR code sequences.
Hiroshi Inoue via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Mar 2 21:40:25 PST 2017
inouehrs added a comment.
Comparison is often used with bit operators, like an example below.
In this example, as long as I test, the transformation is applied only when POS is 0; compd + isel are used for cases with POS > 0.
I feel it is nice if we can support comparisons used with bit operators.
const int POS = 1;
long set_flag(long a, long b, long flags) {
flags |= ((a == b) << POS);
return flags;
}
https://reviews.llvm.org/D30469
More information about the llvm-commits
mailing list