mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-22 04:36:42 +00:00
Disalbe bswap constant folding
This commit is contained in:
parent
ec30ce47af
commit
ae6e70913a
1 changed files with 3 additions and 2 deletions
|
|
@ -22,8 +22,9 @@ llvm::Value* Endianness::bswapIfLE(llvm::IRBuilder<>& _builder, llvm::Value* _wo
|
|||
|
||||
if (tester{1}.isLE)
|
||||
{
|
||||
if (auto constant = llvm::dyn_cast<llvm::ConstantInt>(_word))
|
||||
return _builder.getInt(constant->getValue().byteSwap());
|
||||
// FIXME: Disabled because of problems with BYTE
|
||||
//if (auto constant = llvm::dyn_cast<llvm::ConstantInt>(_word))
|
||||
// return _builder.getInt(constant->getValue().byteSwap());
|
||||
|
||||
// OPT: Cache func declaration?
|
||||
auto bswapFunc = llvm::Intrinsic::getDeclaration(_builder.GetInsertBlock()->getParent()->getParent(), llvm::Intrinsic::bswap, Type::Word);
|
||||
|
|
|
|||
Loading…
Reference in a new issue