Revert "[InstSimplify] Remove known bits constant folding"
authorNikita Popov <nikita.ppv@gmail.com>
Sun, 3 May 2020 18:45:10 +0000 (20:45 +0200)
committerNikita Popov <nikita.ppv@gmail.com>
Sun, 3 May 2020 18:45:10 +0000 (20:45 +0200)
commit46ee652c70f7922c5f540c4778c65ac0bb79191f
tree8f4b789d268c4d4d6b306287ddd2ed6bac860c24
parent08556afc54e7ddfa7cc2fdd69c615ad417722517
Revert "[InstSimplify] Remove known bits constant folding"

This reverts commit 08556afc54e7ddfa7cc2fdd69c615ad417722517.

This breaks some AMDGPU tests.
llvm/lib/Analysis/InstructionSimplify.cpp
llvm/test/Analysis/ValueTracking/knownzero-shift.ll
llvm/test/Transforms/GVN/PRE/volatile.ll
llvm/test/Transforms/InstSimplify/assume.ll [new file with mode: 0644]
llvm/test/Transforms/InstSimplify/call.ll
llvm/test/Transforms/InstSimplify/or.ll
llvm/test/Transforms/InstSimplify/shift-knownbits.ll