Revert "[ARM] Cleanup ARM CGP isSupportedValue"
authorVolodymyr Sapsai <vsapsai@apple.com>
Tue, 18 Sep 2018 00:11:55 +0000 (00:11 +0000)
committerVolodymyr Sapsai <vsapsai@apple.com>
Tue, 18 Sep 2018 00:11:55 +0000 (00:11 +0000)
commit703ab84cf59e460671f02fa249f583d162be7595
treedc0328efdc7b6a559798251c06da3f7e484523bc
parentd38f9a6ce3c1cd3d7459408b2bbcfafacb4a5e0c
Revert "[ARM] Cleanup ARM CGP isSupportedValue"

This reverts r342395 as it caused error

> Argument value type does not match pointer operand type!
>   %0 = atomicrmw volatile xchg i8* %_Value1, i32 1 monotonic, !dbg !25
>  i8in function atomic_flag_test_and_set
> fatal error: error in backend: Broken function found, compilation aborted!

on bot http://green.lab.llvm.org/green/job/clang-stage1-configure-RA/

More details are available at https://reviews.llvm.org/D52080

llvm-svn: 342431
llvm/lib/Target/ARM/ARMCodeGenPrepare.cpp
llvm/test/CodeGen/ARM/arm-cgp-casts.ll