[PATCH] D86673: [StackColoring] Conservatively merge Variable in catch(Variable)

Chang Lin via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 26 15:39:53 PDT 2020


clin1 added inline comments.


================
Comment at: llvm/test/CodeGen/X86/StackColoring-first-use-in-catch.mir:7
+#
+#// Compile with "clang-cl -m32 -O2 -EHsc test.cpp"
+##include <stdio.h>
----------------
The "printf" calls and string values can be removed from the test case. The optimizer passes must be prevented from removing the "i = 9999" in the destructor, and "exp" must be read in the catch block. This can be done in simpler ways (volatile store, call to dummy non-removable function, etc.)


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

https://reviews.llvm.org/D86673



More information about the llvm-commits mailing list