Closed nico closed 7 years ago
r289972. (I'm glad the assertion caught this; it would have been a painful miscompile to track down.)
Smaller:
CC=$HOME/src/llvm-build-nolibcxx/bin/clang $CC "-cc1" "-triple" "thumbv7-apple-ios9.0.0" "-emit-obj" "-relaxed-aliasing" "-O2" "-vectorize-loops" "-x" "c" "foo.ii" 2>&1
$ cat foo.ii typedef signed char int8_t; typedef unsigned char uint8_t; typedef unsigned int uint32_t; typedef struct { uint8_t green_tored; uint8_t green_toblue; uint8_t red_toblue; } VP8LMultipliers; static inline uint32_t ColorTransformDelta(int8_t color_pred, int8_t color) { return (uint32_t)((int)(color_pred)color) >> 5; } void VP8LTransformColorInverse_C(const VP8LMultipliers const m, uint32_t* data, int num_pixels) { int i; for (i = 0; i < num_pixels; ++i) { const uint32_t argb = data[i]; const uint32_t green = argb >> 8; const uint32_t red = argb >> 16; uint32_t new_red = red; uint32_t new_blue = argb; new_red += ColorTransformDelta(m->green_tored, green); new_blue += ColorTransformDelta(m->red_toblue, new_red); data[i] = (argb & 0xff00ff00u) | (new_red << 16) | (new_blue); } }
full stack
thakis@thakis:~/src/llvm-build-nolibcxx$ ./lossless-7ea032.sh clang: /usr/local/google/home/thakis/src/llvm-rw/lib/CodeGen/SelectionDAG/SelectionDAG.cpp:6973: llvm::MemSDNode::MemSDNode(unsigned int, unsigned int, const llvm::DebugLoc&, llvm::SDVTList, llvm::EVT, llvm::MachineMemOperand*): Assertion `memvt.getStoreSize() <= MMO->getSize() && "Size mismatch!"' failed.
Stack dump:
It was 289703
thakis@thakis:~/src/llvm-rw$ svn merge -c -289703 . --- Reverse-merging r289703 into '.': U lib/Target/ARM/ARMISelLowering.h U lib/Target/ARM/ARMISelLowering.cpp U lib/Target/ARM/ARMISelDAGToDAG.cpp U test/CodeGen/ARM/vmul.ll U test/CodeGen/ARM/vlddup.ll --- Recording mergeinfo for reverse merge of r289703 into '.': U . thakis@thakis:~/src/llvm-rw$ svn commit -m 'Revert 279703, it caused llvm/llvm-project#30752 .' Sending lib/Target/ARM/ARMISelDAGToDAG.cpp Sending lib/Target/ARM/ARMISelLowering.cpp Sending lib/Target/ARM/ARMISelLowering.h Sending test/CodeGen/ARM/vlddup.ll Sending test/CodeGen/ARM/vmul.ll Transmitting file data ..... Committed revision 289923.
Extended Description
Repro coming in a sec