As discussed in http://lists.llvm.org/pipermail/llvm-dev/2020-July/143801.html. Currently no users outside of unit tests. Replace all instances in tests of -constprop with -instsimplify. Notable changes in tests: * vscale.ll - @llvm.sadd.sat.nxv16i8 is evaluated by instsimplify, use a fake intrinsic instead * InsertElement.ll - insertelement undef is removed by instsimplify in @insertelement_undef llvm/test/Transforms/ConstProp moved to llvm/test/Transforms/InstSimplify/ConstProp Reviewed By: lattner, nikic Differential Revision: https://reviews.llvm.org/D85159
12 lines
547 B
LLVM
12 lines
547 B
LLVM
; RUN: llvm-as < %s | llvm-dis | not grep ptrtoint
|
|
; PR4424
|
|
@G = external global i32
|
|
@test1 = constant i32 sdiv (i32 0, i32 ptrtoint (i32* @G to i32))
|
|
@test2 = constant i32 udiv (i32 0, i32 ptrtoint (i32* @G to i32))
|
|
@test3 = constant i32 srem (i32 0, i32 ptrtoint (i32* @G to i32))
|
|
@test4 = constant i32 urem (i32 0, i32 ptrtoint (i32* @G to i32))
|
|
@test5 = constant i32 lshr (i32 0, i32 ptrtoint (i32* @G to i32))
|
|
@test6 = constant i32 ashr (i32 0, i32 ptrtoint (i32* @G to i32))
|
|
@test7 = constant i32 shl (i32 0, i32 ptrtoint (i32* @G to i32))
|
|
|