[PATCH] Added llvm.is.constant intrinsic

Janusz Sobczak janusz.sobczak at mobica.com
Wed Jun 25 08:22:38 PDT 2014


================
Comment at: test/CodeGen/Generic/inline-is-constant.ll:4
@@ +3,3 @@
+; Expected outcome: @fun is inlined and @llvm.is.constant is resolved to TRUE
+; Without inlining @llvm.is.constant would resolve to FALSE.
+
----------------
Renato Golin wrote:
> a more robust way would be to have two run lines, one with O0, another with O3, and use FileCheck for the True/False results.
If using lli is frowned upon, then the resolution is to call 'llc -debug' and search for the debug strings with FileCheck

http://reviews.llvm.org/D4276






More information about the llvm-commits mailing list