[llvm-commits] [PATCH] ConstantFolding.cpp: Make Big-endian aware
NAKAMURA Takumi
geek4civic at gmail.com
Thu Nov 8 10:29:16 PST 2012
ping!
2012/11/2 NAKAMURA Takumi <geek4civic at gmail.com>
> Make ReadDataFromGlobal() and FoldReinterpretLoadFromConstPtr() were not
> performed when target is big endian.
>
> It caused failure in Clang :: CodeGen___bitfield-promote.c on ppc.
>
> Some tests are made to check with both endian.
>
>
> http://llvm-reviews.chandlerc.com/D97
>
> Files:
> llvm/lib/Analysis/ConstantFolding.cpp
> llvm/test/Transforms/ConstProp/loads.ll
> llvm/test/Transforms/GVN/rle.ll
> llvm/test/Transforms/InstCombine/2012-07-25-LoadPart.ll
> llvm/test/Transforms/SCCP/loadtest.ll
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20121108/ef2888c1/attachment.html>
More information about the llvm-commits
mailing list