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

NAKAMURA Takumi geek4civic at gmail.com
Fri Nov 2 00:35:43 PDT 2012


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 --------------
A non-text attachment was scrubbed...
Name: D97.1.patch
Type: text/x-patch
Size: 9905 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20121102/80382b00/attachment.bin>


More information about the llvm-commits mailing list