llvm-project/llvm/lib/Transforms
Sanjay Patel a7ed21aa1e [InstCombine] try to fold div with constant dividend and select-of-constants divisor
We avoid this fold in the more general cases where we use FoldOpIntoSelect.
That's because -- unlike most binary opcodes -- 'div' can't usually be
speculated with a variable divisor since it can have immediate UB. But in
the case where both arms of the select are constants, we can safely evaluate
both sides and eliminate 'div' completely.

This is a follow-up to the equivalent fold for 'rem' opcodes:
D115173 / f65be726ab
2021-12-08 10:27:50 -05:00
..
AggressiveInstCombine [llvm] Use llvm::reverse (NFC) 2021-11-06 19:31:18 -07:00
CFGuard [CFG] Handle calls with funclet bundle 2021-12-03 10:51:10 -08:00
Coroutines [coro async] Don't use lifetime.start based alloca localization for ABI.Async/ABI.Retcon 2021-12-06 11:50:51 -08:00
Hello
IPO [OpenMP] Make reduction functions SPMD compatible 2021-12-06 12:32:02 -05:00
InstCombine [InstCombine] try to fold div with constant dividend and select-of-constants divisor 2021-12-08 10:27:50 -05:00
Instrumentation [InstrProf][NFC] Refactor ProfileDataMap usage 2021-12-01 11:47:14 -08:00
ObjCARC [llvm] Use range-based for loops (NFC) 2021-11-28 18:14:49 -08:00
Scalar [LICM] Remove profile driven restriction on hoisting 2021-12-03 17:19:25 -08:00
Utils ext-tsp basic block layout 2021-12-07 07:31:10 -08:00
Vectorize [VPlan] Verify plan entry and exit blocks, set correct exit block. 2021-12-07 16:26:31 +00:00
CMakeLists.txt [NewPM][HelloWorld] Move HelloWorld to Utils 2021-02-03 12:59:40 -08:00