Commit e215380e authored by Henrich Lauko's avatar Henrich Lauko

lart: Enable propagation from global variables.

parent f8090b1b
......@@ -120,11 +120,12 @@ namespace lart::abstract {
bool is_propagable( llvm::Value * val ) noexcept
{
if ( llvm::isa< llvm::Constant >( val ) )
if ( llvm::isa< llvm::ConstantData >( val ) )
return false;
if ( is_call( val ) )
return true;
return util::is_one_of< llvm::Argument
, llvm::GlobalVariable
, llvm::ReturnInst
, llvm::GetElementPtrInst
, llvm::CmpInst
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment