llvm-project/llvm/test/Transforms/CodeGenPrepare/X86
Juneyoung Lee 6ad63606ea [CodeGenPrepare] Freeze condition when transforming select to br
Summary:
This is a simple fix for CodeGenPrepare that freezes branch condition when transforming select to branch.
If it is not frozen, instsimplify or the later pipeline can potentially exploit undefined behavior.

The diff shows optimized form becase D75859 and D76048 already made a few changes to CodeGenPrepare for optimizing freeze(cmp).

Reviewers: jdoerfert, spatel, lebedev.ri, efriedma

Reviewed By: lebedev.ri

Subscribers: hiraditya, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D76179
2020-03-16 12:46:20 +09:00
..
2008-11-24-RAUW-Self.ll [test] More tests to target specific directories after CodeGenPrepare requires TargetPassConfig (D73754) 2020-02-02 10:43:02 -08:00
bitreverse-hang.ll [CodeGenPrepare] Make TargetPassConfig required 2020-02-02 09:28:45 -08:00
catchpad-phi-cast.ll
computedgoto.ll
cttz-ctlz.ll
ext-logicop.ll
extend-sink-hoist.ll
fcmp-sinking.ll
freeze-cmp.ll [CodeGenPrepare] Expand freeze conversion to support fcmp and icmp with null 2020-03-13 17:21:33 +09:00
gep-unmerging.ll [CodeGenPrepare] Make TargetPassConfig required 2020-02-02 09:28:45 -08:00
invariant.group.ll [CodeGenPrepare] Make TargetPassConfig required 2020-02-02 09:28:45 -08:00
lit.local.cfg
memset_chk-simplify-nobuiltin.ll [CodeGenPrepare] Make TargetPassConfig required 2020-02-02 09:28:45 -08:00
multi-extension.ll
nonintegral.ll [test] More tests to target specific directories after CodeGenPrepare requires TargetPassConfig (D73754) 2020-02-02 10:43:02 -08:00
optimizeSelect-DT.ll [CodeGenPrepare] Freeze condition when transforming select to br 2020-03-16 12:46:20 +09:00
overflow-intrinsics.ll Recommit "[PatternMatch] Match XOR variant of unsigned-add overflow check." 2020-02-23 18:33:18 +00:00
pr27536.ll
pr35658.ll
section-samplepgo.ll [test] More tests to target specific directories after CodeGenPrepare requires TargetPassConfig (D73754) 2020-02-02 10:43:02 -08:00
section.ll [test] More tests to target specific directories after CodeGenPrepare requires TargetPassConfig (D73754) 2020-02-02 10:43:02 -08:00
select.ll [CodeGenPrepare] Freeze condition when transforming select to br 2020-03-16 12:46:20 +09:00
sink-addrmode-base.ll
sink-addrmode-select.ll
sink-addrmode-two-phi.ll
sink-addrmode.ll [PGO][PGSO] Enable size optimizations in code gen / target passes for cold code. 2019-12-13 11:01:19 -08:00
sink-addrspacecast.ll
split-indirect-loop.ll [CodeGenPrepare] Make TargetPassConfig required 2020-02-02 09:28:45 -08:00
split-store-alignment.ll [CodeGen] Fix the computation of the alignment of split stores. 2020-02-12 10:37:30 +01:00
statepoint-relocate.ll [test] More tests to target specific directories after CodeGenPrepare requires TargetPassConfig (D73754) 2020-02-02 10:43:02 -08:00
vec-shift.ll
widen_switch.ll
widenable-condition.ll [CodeGenPrepare] Make TargetPassConfig required 2020-02-02 09:28:45 -08:00
x86-shuffle-sink.ll