Files
swift-mirror/lib/SILAnalysis/SimplifyInstruction.cpp
Roman Levenstein f8a1aaff96 [sil-simplify] Add a peephole for XOR
Use the following equality: (x xor y) xor y == x.
With this in mind (a xor b) xor c can be replaced by:
 a - if b and c are the same
 b - if a and c are the same
 c - if a and b are the same

rdar://20280322

Swift SVN r26568
2015-03-26 00:37:08 +00:00

23 KiB