[llvm] r256699 - [TableGen] Replace a logically negated xor of bools with just an equality comparison for readability. NFC
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Sat Jan 2 23:33:39 PST 2016
Author: ctopper
Date: Sun Jan 3 01:33:39 2016
New Revision: 256699
URL: http://llvm.org/viewvc/llvm-project?rev=256699&view=rev
Log:
[TableGen] Replace a logically negated xor of bools with just an equality comparison for readability. NFC
Modified:
llvm/trunk/utils/TableGen/AsmMatcherEmitter.cpp
Modified: llvm/trunk/utils/TableGen/AsmMatcherEmitter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/TableGen/AsmMatcherEmitter.cpp?rev=256699&r1=256698&r2=256699&view=diff
==============================================================================
--- llvm/trunk/utils/TableGen/AsmMatcherEmitter.cpp (original)
+++ llvm/trunk/utils/TableGen/AsmMatcherEmitter.cpp Sun Jan 3 01:33:39 2016
@@ -589,7 +589,7 @@ struct MatchableInfo {
HasGT = true;
}
- return !(HasLT ^ HasGT);
+ return HasLT == HasGT;
}
void dump() const;
More information about the llvm-commits
mailing list