[llvm-commits] [PATCH] ConstantFolding.cpp: Make Big-endian aware

Duncan Sands baldrick at free.fr
Thu Nov 8 10:34:02 PST 2012


On 08/11/12 19:29, NAKAMURA Takumi wrote:
> ping!

LGTM.

Ciao, Duncan.

>
>
> 2012/11/2 NAKAMURA Takumi <geek4civic at gmail.com <mailto: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
>
>
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
>




More information about the llvm-commits mailing list