This fixes failure in Transforms/GVNHoist/hoist.ll uncovered by D39245.
Forgot to add llvm-commits.
Check this instead: D39410.