[PATCH] D64084: [AArch64][GlobalISel] Teach tryOptSelect to handle G_ICMP
Bjorn Pettersson via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 3 11:19:09 PDT 2019
bjope added inline comments.
================
Comment at: llvm/trunk/lib/Target/AArch64/AArch64InstructionSelector.cpp:2816
+ LLT CmpTy = MRI.getType(LHS.getReg());
+ assert(CmpTy.isScalar() || CmpTy.isPointer() && "Expected scalar or pointer");
+ if (CmpTy == LLT::scalar(32)) {
----------------
This looks incorrect ( `&&` has higher precedence than `||` ). So I assume it should be
assert((CmpTy.isScalar() || CmpTy.isPointer()) && "Expected scalar or pointer");
And we get a warning when building with gcc:
../lib/Target/AArch64/AArch64InstructionSelector.cpp:2938:48: error: suggest parentheses around '&&' within '||' [-Werror=parentheses]
assert(CmpTy.isScalar() || CmpTy.isPointer() && "Expected scalar or pointer");
Repository:
rL LLVM
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D64084/new/
https://reviews.llvm.org/D64084
More information about the llvm-commits
mailing list