[PATCH] D41187: Ignore metainstructions during the shrink wrap analysis

Francis Visoiu Mistrih via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 12 04:18:38 PST 2018


thegameg added subscribers: MatzeB, thegameg.
thegameg added inline comments.


================
Comment at: llvm/trunk/lib/CodeGen/ShrinkWrap.cpp:244
+  // Ignore DBG_VALUE and other meta instructions that must not affect codegen.
+  if (MI.isMetaInstruction())
+    return false;
----------------
Do we also want to ignore
```
%csr = IMPLICIT_DEF
```
?

I remember @MatzeB suggested this approach to me to write cleaner tests.


Repository:
  rL LLVM

https://reviews.llvm.org/D41187





More information about the llvm-commits mailing list