[PATCH] D81106: [PowerPC][NFC] Don't need to and instruction with inverse of mask.

Fangrui Song via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 3 09:53:19 PDT 2020


MaskRay added inline comments.
Herald added a subscriber: wuzish.


================
Comment at: lld/ELF/Arch/PPC64.cpp:976
     checkAlignment(loc, val, 4, rel);
-    write32(loc, (read32(loc) & ~mask) | (val & mask));
+    write32(loc, read32(loc) | (val & mask));
     break;
----------------
This existing code have one fewer assumption. What's the motivation behind the change?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D81106/new/

https://reviews.llvm.org/D81106





More information about the llvm-commits mailing list