[PATCH] D69542: Full Restrict Support - single patch

Henry Kao via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Feb 1 14:01:34 PST 2022


hkao13 added inline comments.


================
Comment at: llvm/lib/IR/IRBuilder.cpp:579
+    if (STyp->isLiteral())
+      CPtr = getCastedInt8PtrValue(CPtr);
+  }
----------------
This is a case when clang codegen creates a bitcast for `NoAliasLoad`, causing the TBAA issue mentioned above.

Is it possible to remove this code entirely? Looking into `getMangledTypeStr()`, it seems like literal structs will be prefixed with "sl_".

Thank you.


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

https://reviews.llvm.org/D69542



More information about the llvm-commits mailing list