[LLVMdev] i1 types in MergeConsecutiveStores
Hal Finkel
hfinkel at anl.gov
Mon May 11 22:56:48 PDT 2015
----- Original Message -----
> From: "Steve King" <steve at metrokings.com>
> To: llvmdev at cs.uiuc.edu
> Sent: Monday, May 11, 2015 11:40:56 PM
> Subject: [LLVMdev] i1 types in MergeConsecutiveStores
>
> Hello LLVM,
>
> In DAGCombiner.cpp, MergeConsecutiveStores uses
>
> int64_t ElementSizeBytes = MemVT.getSizeInBits()/8;
>
> https://github.com/llvm-mirror/llvm/blob/master/lib/CodeGen/SelectionDAG/DAGCombiner.cpp#L10669
>
> which is broken for i1 types where getSizeInBits() == 1. My
> out-of-tree target hits this case and eventually LLVM asserts in
> Type.cpp.
>
> Is there some reason MergeConsecutiveStores should not expect to see
> i1 types?
My impression is that there are a lot of things that are (still) broken for i1 memory operations (and i1 vectors). Patches welcome.
-Hal
>
> Thanks,
> -steve
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>
--
Hal Finkel
Assistant Computational Scientist
Leadership Computing Facility
Argonne National Laboratory
More information about the llvm-dev
mailing list