OSDN Git Service

Disable the load-shrinking optimization from looking at
authorChris Lattner <sabre@nondot.org>
Wed, 29 Apr 2009 03:45:07 +0000 (03:45 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 29 Apr 2009 03:45:07 +0000 (03:45 +0000)
commit672452d5a0dace689d7f9df9837c03afe3a74281
treef609a874ab32d01b661ce9e7c0532edf4f4c8462
parentf0aa4850ceb61695500437c26e609c4ec394157a
Disable the load-shrinking optimization from looking at
anything larger than 64-bits, avoiding a crash.  This should
really be fixed to use APInts, though type legalization happens
to help us out and we get good code on the attached testcase at
least.

This fixes rdar://6836460

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@70360 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/TargetLowering.cpp
test/CodeGen/Generic/2009-04-28-i128-cmp-crash.ll [new file with mode: 0644]