aboutsummaryrefslogtreecommitdiffstats
path: root/test/Assembler
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-12-10 22:53:04 +0000
committerChris Lattner <sabre@nondot.org>2007-12-10 22:53:04 +0000
commitd6e569110ab0ff7846c184f1c92effd798ff39a8 (patch)
tree400c56bd0a897bc94b6b69e53505a2d1074cdb57 /test/Assembler
parent844fad5f440c7a69112c2f8f17bbc488232a6893 (diff)
downloadexternal_llvm-d6e569110ab0ff7846c184f1c92effd798ff39a8.zip
external_llvm-d6e569110ab0ff7846c184f1c92effd798ff39a8.tar.gz
external_llvm-d6e569110ab0ff7846c184f1c92effd798ff39a8.tar.bz2
Fix PR1850 by removing an unsafe transformation from VMCore/ConstantFold.cpp.
Reimplement the xform in Analysis/ConstantFolding.cpp where we can use targetdata to validate that it is safe. While I'm in there, fix some const correctness issues and generalize the interface to the "operand folder". git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44817 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Assembler')
-rw-r--r--test/Assembler/ConstantExprFold.llx3
1 files changed, 0 insertions, 3 deletions
diff --git a/test/Assembler/ConstantExprFold.llx b/test/Assembler/ConstantExprFold.llx
index b4d779d..0285743 100644
--- a/test/Assembler/ConstantExprFold.llx
+++ b/test/Assembler/ConstantExprFold.llx
@@ -24,6 +24,3 @@ global bool setlt (int* getelementptr (%Ty* %B, long 0, uint 0),
int* getelementptr (%Ty* %B, long 0, uint 1)) ; true
;global bool setne (long* %A, long* cast (%Ty* %B to long*)) ; true
-global bool seteq ({ short }* cast (int 1 to { short }*), { short }* null)
-global bool setlt ({ short }* cast (int 1 to { short }*), { short }* cast (int 2 to { short }*))
-