TVM 0.7.0 - Tests fail with `Check failed: reg != nullptr: AttributeError: Operator reshape is not registered`

arith_simplify_test and other tests fail with:

[ 1204s] terminate called after throwing an instance of 'dmlc::Error'
[ 1204s]   what():  [08:53:41] /home/abuild/rpmbuild/BUILD/incubator-tvm-0.7.0/src/ir/op.cc:45: Check failed: reg != nullptr: AttributeError: Operator reshape is not registered
[ 1204s] Stack trace:
[ 1204s]   [bt] (0) /home/abuild/rpmbuild/BUILDROOT/tvm-0.7.0-45.1.aarch64/usr/lib64/libtvm.so(+0x2c6720) [0xffffb97d6720]
[ 1204s]   [bt] (1) /home/abuild/rpmbuild/BUILDROOT/tvm-0.7.0-45.1.aarch64/usr/lib64/libtvm.so(tvm::Op::Get(tvm::runtime::String const&)+0x1e8) [0xffffb99397a8]
[ 1204s]   [bt] (2) /home/abuild/rpmbuild/BUILDROOT/tvm-0.7.0-45.1.aarch64/usr/lib64/libtvm.so(+0x24b5ac) [0xffffb975b5ac]
[ 1204s]   [bt] (3) /home/abuild/rpmbuild/BUILDROOT/tvm-0.7.0-45.1.aarch64/usr/lib64/libtvm.so(+0x2c38e8) [0xffffb97d38e8]
[ 1204s]   [bt] (4) /lib/ld-linux-aarch64.so.1(+0xec8c) [0xffffba453c8c]
[ 1204s]   [bt] (5) /lib/ld-linux-aarch64.so.1(+0xed84) [0xffffba453d84]
[ 1204s]   [bt] (6) /lib/ld-linux-aarch64.so.1(+0x1088) [0xffffba446088]

This problem started with version 0.7.0. Version 0.6.0 was fine.

The problem was becauseof LTO (Link Time Optimization). Once I disabled LTO, it built properly.