[PATCH] D35178: [GlobalISel][X86] Support G_LOAD/G_STORE i1.

Igor Breger via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 10 00:39:42 PDT 2017


igorb added inline comments.


================
Comment at: test/CodeGen/X86/GlobalISel/memop-scalar-x32.ll:7
 
+define i1 @test_load_i1(i1 * %p1) {
+; ALL-LABEL: test_load_i1:
----------------
guyblank wrote:
> should there be an AND here for the truncation to i1?
No,  truncate only drop the bits.
for reference  DagISEL generate the same code



https://reviews.llvm.org/D35178





More information about the llvm-commits mailing list